Unverified Commit 2d0ed6c3 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Turbopack: update more snapshots (#61786)

These are correct since #61735 fixed tracing these. Unfortunately they
don’t pass yet as the overlay is not properly dismissed when these
errors are fixed.


Closes PACK-2439
parent c662d573
...@@ -96,41 +96,41 @@ describe.each(['default', 'turbo'])( ...@@ -96,41 +96,41 @@ describe.each(['default', 'turbo'])(
const source = next.normalizeTestDirContent(content) const source = next.normalizeTestDirContent(content)
if (process.env.TURBOPACK) { if (process.env.TURBOPACK) {
expect(source).toMatchInlineSnapshot(` expect(source).toMatchInlineSnapshot(`
"./pages/_app.js:2:11 "./pages/_app.js:2:11
Parsing ecmascript source code failed Parsing ecmascript source code failed
1 | function MyApp({ Component, pageProps }) { 1 | function MyApp({ Component, pageProps }) {
> 2 | return <<Component {...pageProps} />; > 2 | return <<Component {...pageProps} />;
| ^^^^^^^^^ | ^
3 | } 3 | }
4 | export default MyApp 4 | export default MyApp
Expression expected" Expression expected"
`) `)
} else { } else {
expect(source).toMatchInlineSnapshot(` expect(source).toMatchInlineSnapshot(`
"./pages/_app.js "./pages/_app.js
Error: Error:
x Expression expected x Expression expected
,-[TEST_DIR/pages/_app.js:1:1] ,-[TEST_DIR/pages/_app.js:1:1]
1 | function MyApp({ Component, pageProps }) { 1 | function MyApp({ Component, pageProps }) {
2 | return <<Component {...pageProps} />; 2 | return <<Component {...pageProps} />;
: ^ : ^
3 | } 3 | }
4 | export default MyApp 4 | export default MyApp
\`---- \`----
x Expression expected x Expression expected
,-[TEST_DIR/pages/_app.js:1:1] ,-[TEST_DIR/pages/_app.js:1:1]
1 | function MyApp({ Component, pageProps }) { 1 | function MyApp({ Component, pageProps }) {
2 | return <<Component {...pageProps} />; 2 | return <<Component {...pageProps} />;
: ^^^^^^^^^ : ^^^^^^^^^
3 | } 3 | }
4 | export default MyApp 4 | export default MyApp
\`---- \`----
Caused by: Caused by:
Syntax Error" Syntax Error"
`) `)
} }
await session.patch( await session.patch(
...@@ -185,36 +185,36 @@ describe.each(['default', 'turbo'])( ...@@ -185,36 +185,36 @@ describe.each(['default', 'turbo'])(
) )
if (process.env.TURBOPACK) { if (process.env.TURBOPACK) {
expect(source).toMatchInlineSnapshot(` expect(source).toMatchInlineSnapshot(`
"./pages/_document.js:3:35 "./pages/_document.js:3:36
Parsing ecmascript source code failed Parsing ecmascript source code failed
1 | import Document, { Html, Head, Main, NextScript } from 'next/document' 1 | import Document, { Html, Head, Main, NextScript } from 'next/document'
2 | 2 |
> 3 | class MyDocument extends Document {{ > 3 | class MyDocument extends Document {{
| ^ | ^
4 | static async getInitialProps(ctx) { 4 | static async getInitialProps(ctx) {
5 | const initialProps = await Document.getInitialProps(ctx) 5 | const initialProps = await Document.getInitialProps(ctx)
6 | return { ...initialProps } 6 | return { ...initialProps }
Unexpected token \`{\`. Expected identifier, string literal, numeric literal or [ for the computed key" Unexpected token \`{\`. Expected identifier, string literal, numeric literal or [ for the computed key"
`) `)
} else { } else {
expect(source).toMatchInlineSnapshot(` expect(source).toMatchInlineSnapshot(`
"./pages/_document.js "./pages/_document.js
Error: Error:
x Unexpected token \`{\`. Expected identifier, string literal, numeric literal or [ for the computed key x Unexpected token \`{\`. Expected identifier, string literal, numeric literal or [ for the computed key
,-[TEST_DIR/pages/_document.js:1:1] ,-[TEST_DIR/pages/_document.js:1:1]
1 | import Document, { Html, Head, Main, NextScript } from 'next/document' 1 | import Document, { Html, Head, Main, NextScript } from 'next/document'
2 | 2 |
3 | class MyDocument extends Document {{ 3 | class MyDocument extends Document {{
: ^ : ^
4 | static async getInitialProps(ctx) { 4 | static async getInitialProps(ctx) {
5 | const initialProps = await Document.getInitialProps(ctx) 5 | const initialProps = await Document.getInitialProps(ctx)
6 | return { ...initialProps } 6 | return { ...initialProps }
\`---- \`----
Caused by: Caused by:
Syntax Error" Syntax Error"
`) `)
} }
await session.patch( await session.patch(
......
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