Commit 2d344fca authored by Janka Uryga's avatar Janka Uryga

update styled-jsx snapshot

parent 9b10f98f
...@@ -66,10 +66,10 @@ describe('Error Overlay invalid imports', () => { ...@@ -66,10 +66,10 @@ describe('Error Overlay invalid imports', () => {
await session.assertHasRedbox() await session.assertHasRedbox()
if (process.env.IS_TURBOPACK_TEST) { if (process.env.IS_TURBOPACK_TEST) {
expect(await session.getRedboxSource()).toMatchInlineSnapshot(` expect(await session.getRedboxSource()).toMatchInlineSnapshot(`
"./app "./app
Invalid import Invalid import
'client-only' cannot be imported from a Server Component module. It should only be used from a Client Component. 'styled-jsx' cannot be imported from a Server Component module. It should only be used from a Client Component.
The error was caused by using 'styled-jsx'. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default." The error was caused by using 'styled-jsx'. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default."
`) `)
} else { } else {
expect(await session.getRedboxSource()).toMatchInlineSnapshot(` expect(await session.getRedboxSource()).toMatchInlineSnapshot(`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment