Skip to content

Commit

Permalink
Update test to check for full stack frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jun 23, 2020
1 parent b3cf533 commit 20e16ec
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/integration/basepath/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ const runTests = (context, dev = false) => {
expect(await hasRedbox(browser)).toBe(true)

const errorSource = await getRedboxSource(browser)
expect(errorSource).toContain('oops heres an error')
expect(errorSource).toMatchInlineSnapshot(`
"pages/hello.js (46:14) @ onClick
44 | id=\\"trigger-error\\"
45 | onClick={() => {
> 46 | throw new Error('oops heres an error')
| ^
47 | }}
48 | >
49 | click me for error"
`)
})
} else {
it('should add basePath to routes-manifest', async () => {
Expand Down

0 comments on commit 20e16ec

Please sign in to comment.