-
Notifications
You must be signed in to change notification settings - Fork 26.1k
/
ReactRefreshLogBox-app-doc.test.ts.snap
51 lines (46 loc) · 1.42 KB
/
ReactRefreshLogBox-app-doc.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ReactRefreshLogBox _app syntax error shows logbox 1`] = `
"./pages/_app.js
Error:
x Expression expected
,-[1:1]
1 |
2 | function MyApp({ Component, pageProps }) {
3 | return <<Component {...pageProps} />;
: ^
4 | }
5 | export default MyApp
6 |
\`----
x Expression expected
,-[1:1]
1 |
2 | function MyApp({ Component, pageProps }) {
3 | return <<Component {...pageProps} />;
: ^^^^^^^^^
4 | }
5 | export default MyApp
6 |
\`----
Caused by:
0: failed to process input file
1: Syntax Error"
`;
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
,-[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:
0: failed to process input file
1: Syntax Error"
`;