-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.test.ts.snap
40 lines (38 loc) · 1.1 KB
/
errors.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`throws if nearest tsconfig.json is not valid 1`] = `
"FAIL e2e/__fixtures__/errors-tsconfig/index.test.ts
● Test suite failed to run
ConfigError: Compiler option 'strict' requires a value of type boolean.
3 | \\"module\\": \\"commonjs\\",
4 | \\"target\\": \\"es2019\\",
> 5 | \\"strict\\": \\"yes\\",
| ^
6 | \\"noEmitOnError\\": true
7 | },
8 | \\"include\\": [\\"./**/*\\"]
at tsconfig.json:5:15
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time:
Ran all test suites.
"
`;
exports[`throws if syntax error is encountered 1`] = `
"FAIL e2e/__fixtures__/errors-syntax/index.test.ts
● Test suite failed to run
SyntaxError: ')' expected.
2 | import one from '.';
3 |
> 4 | expectError(one('foo', 'bar');
| ^
5 | expectError(one('foo' 'bar'));
6 |
at index.test.ts:4:30
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time:
Ran all test suites.
"
`;