Skip to content

Commit

Permalink
test(snapshot): update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Dec 7, 2022
1 parent 583f1ce commit b19d5ab
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 35 deletions.
Expand Up @@ -142,9 +142,12 @@ exports[`ReactRefreshLogBox app syntax > runtime error 2`] = `
"./index.js
Error:
x Expected '}', got '<eof>'
,----
8 | export default function FunctionNamed() {
: ^
,-[5:1]
5 | i++
6 | throw Error('no ' + i)
7 | }, 1000)
8 | export default function FunctionNamed() {
: ^
\`----
Caused by:
Expand All @@ -157,9 +160,12 @@ exports[`ReactRefreshLogBox app syntax > runtime error 3`] = `
"./index.js
Error:
x Expected '}', got '<eof>'
,----
8 | export default function FunctionNamed() {
: ^
,-[5:1]
5 | i++
6 | throw Error('no ' + i)
7 | }, 1000)
8 | export default function FunctionNamed() {
: ^
\`----
Caused by:
Expand All @@ -172,15 +178,21 @@ exports[`ReactRefreshLogBox app unterminated JSX 1`] = `
"./index.js
Error:
x Unexpected token. Did you mean \`{'}'}\` or \`&rbrace;\`?
,----
8 | }
: ^
,-[5:1]
5 | <p>lol</p>
6 | div
7 | )
8 | }
: ^
9 |
\`----
x Unexpected eof
,----
9 |
: ^
,-[6:1]
6 | div
7 | )
8 | }
9 |
\`----
Caused by:
Expand Down
Expand Up @@ -4,16 +4,25 @@ exports[`ReactRefreshLogBox _app syntax error shows logbox 1`] = `
"./pages/_app.js
Error:
x Expression expected
,----
3 | return <<Component {...pageProps} />;
: ^
,-[1:1]
1 |
2 | function MyApp({ Component, pageProps }) {
3 | return <<Component {...pageProps} />;
: ^
4 | }
5 | export default MyApp
6 |
\`----
x Unexpected token \`jsx name (Component)\`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint,
| string, regexp, \` for template literal, (, or an identifier
,----
3 | return <<Component {...pageProps} />;
: ^^^^^^^^^
x Expression expected
,-[1:1]
1 |
2 | function MyApp({ Component, pageProps }) {
3 | return <<Component {...pageProps} />;
: ^^^^^^^^^
4 | }
5 | export default MyApp
6 |
\`----
Caused by:
Expand All @@ -25,9 +34,15 @@ exports[`ReactRefreshLogBox _document syntax error shows logbox 1`] = `
"./pages/_document.js
Error:
x Unexpected token \`{\`. Expected identifier, string literal, numeric literal or [ for the computed key
,----
4 | class MyDocument extends Document {{
: ^
,-[1:1]
1 |
2 | import Document, { Html, Head, Main, NextScript } from 'next/document'
3 |
4 | class MyDocument extends Document {{
: ^
5 | static async getInitialProps(ctx) {
6 | const initialProps = await Document.getInitialProps(ctx)
7 | return { ...initialProps }
\`----
Caused by:
Expand Down
Expand Up @@ -142,9 +142,12 @@ exports[`ReactRefreshLogBox syntax > runtime error 2`] = `
"./index.js
Error:
x Expected '}', got '<eof>'
,----
8 | export default function FunctionNamed() {
: ^
,-[5:1]
5 | i++
6 | throw Error('no ' + i)
7 | }, 1000)
8 | export default function FunctionNamed() {
: ^
\`----
Caused by:
Expand All @@ -157,9 +160,12 @@ exports[`ReactRefreshLogBox syntax > runtime error 3`] = `
"./index.js
Error:
x Expected '}', got '<eof>'
,----
8 | export default function FunctionNamed() {
: ^
,-[5:1]
5 | i++
6 | throw Error('no ' + i)
7 | }, 1000)
8 | export default function FunctionNamed() {
: ^
\`----
Caused by:
Expand All @@ -172,15 +178,21 @@ exports[`ReactRefreshLogBox unterminated JSX 1`] = `
"./index.js
Error:
x Unexpected token. Did you mean \`{'}'}\` or \`&rbrace;\`?
,----
8 | }
: ^
,-[5:1]
5 | <p>lol</p>
6 | div
7 | )
8 | }
: ^
9 |
\`----
x Unexpected eof
,----
9 |
: ^
,-[6:1]
6 | div
7 | )
8 | }
9 |
\`----
Caused by:
Expand Down

0 comments on commit b19d5ab

Please sign in to comment.