Skip to content

Commit

Permalink
Add check for exact error
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Apr 15, 2021
1 parent bfb81fa commit 1bafc08
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/acceptance/ReactRefreshLogBox.dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,16 @@ test('_app top level error shows logbox', async () => {
])
)
expect(await session.hasRedbox(true)).toBe(true)
expect(await session.getRedboxSource()).toMatchInlineSnapshot(`
"pages/_app.js (2:16) @ eval
1 |
> 2 | throw new Error(\\"test\\");
| ^
3 | function MyApp({ Component, pageProps }) {
4 | return <Component {...pageProps} />;
5 | }"
`)

await session.patch(
'pages/_app.js',
Expand Down

0 comments on commit 1bafc08

Please sign in to comment.