-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
/
Copy pathmessages.test.ts.snap
114 lines (88 loc) · 3.38 KB
/
messages.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`.formatExecError() 1`] = `
" <bold>● </>Test suite failed to run
Whoops!
"
`;
exports[`codeframe 1`] = `
" <bold>● </>Test suite failed to run
Whoops!
</><red><bold>></></><gray> 1 |</> <cyan>throw</> <cyan>new</> <yellow>Error</>(<green>\\"Whoops!\\"</>)<yellow>;</></>
</> <gray> |</> <red><bold>^</></></>
<dim>at Object.<anonymous> (</>file.js<dim>:1:7)</>
"
`;
exports[`formatStackTrace does not print code frame when noCodeFrame = true 1`] = `
"
<dim>at Object.<anonymous> (</>file.js<dim>:1:7)</>
"
`;
exports[`formatStackTrace does not print codeframe when noStackTrace = true 1`] = `
"
<dim>at Object.<anonymous> (</>file.js<dim>:1:7)</>
"
`;
exports[`formatStackTrace prints code frame and stacktrace 1`] = `
"
</><red><bold>></></><gray> 1 |</> <cyan>throw</> <cyan>new</> <yellow>Error</>(<green>\\"Whoops!\\"</>)<yellow>;</></>
</> <gray> |</> <red><bold>^</></></>
<dim>at Object.<anonymous> (</>file.js<dim>:1:7)</>
"
`;
exports[`formatStackTrace should strip node internals 1`] = `
"<bold><red> <bold>● </><bold>Unix test</></>
Expected value to be of type:
\\"number\\"
Received:
\\"\\"
type:
\\"string\\"
<dim></>
<dim> <dim>at Object.it (</><dim>__tests__/test.js<dim>:8:14)</><dim></>
"
`;
exports[`no codeframe 1`] = `
" <bold>● </>Test suite failed to run
Whoops!
<dim>at Object.<anonymous> (</>file.js<dim>:1:7)</>
"
`;
exports[`no stack 1`] = `
" <bold>● </>Test suite failed to run
Whoops!
"
`;
exports[`retains message in babel code frame error 1`] = `
"<bold><red> <bold>● </><bold>Babel test</></>
packages/react/src/forwardRef.js: Unexpected token, expected , (20:10)
<dim></>
<dim> </> <gray> 18 | </> <cyan>false</><yellow>,</></>
<dim> <gray> 19 | </> <green>'forwardRef requires a render function but received a \`memo\` '</></>
<dim> <red><bold>></><dim></><gray> 20 | </> <green>'component. Instead of forwardRef(memo(...)), use '</> <yellow>+</></>
<dim> <gray> | </> <red><bold>^</><dim></></>
<dim> <gray> 21 | </> <green>'memo(forwardRef(...)).'</><yellow>,</></>
<dim> <gray> 22 | </> )<yellow>;</></>
<dim> <gray> 23 | </> } <cyan>else</> <cyan>if</> (<cyan>typeof</> render <yellow>!==</> <green>'function'</>) {</></>
"
`;
exports[`should exclude jasmine from stack trace for Unix paths. 1`] = `
"<bold><red> <bold>● </><bold>Unix test</></>
at stack (../jest-jasmine2/build/jasmine-2.4.1.js:1580:17)
<dim></>
<dim> <dim>at Object.addResult (</><dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)</><dim></>
<dim> <dim>at Object.it (</><dim>build/__tests__/messages-test.js<dim>:45:41)</><dim></>
"
`;
exports[`should not exclude vendor from stack trace 1`] = `
"<bold><red> <bold>● </><bold>Vendor test</></>
Expected value to be of type:
\\"number\\"
Received:
\\"\\"
type:
\\"string\\"
<dim></>
<dim> <dim>at Object.it (</><dim>__tests__/vendor/cool_test.js<dim>:6:666)</><dim></>
<dim> <dim>at Object.asyncFn (</><dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)</><dim></>
"
`;