-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
check.test.js.snap
107 lines (82 loc) · 3.65 KB
/
check.test.js.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`accepts files 1`] = `
"[33m-[39m Check types
[32m✔[39m Check types
"
`;
exports[`checks both tests 1`] = `
"[33m-[39m Check types
[31m✖[39m Check types
[31m✖ [90mtest/[31ma.types.ts[90m[31m:3:10:[39m[1m Type error [90mTS2345[39m
[22m [31mArgument of type 'string' is not assignable to parameter of type 'number'.[39m
[31m✖ [90mtest/[31ma.errors.ts[90m[31m:4:10:[39m[1m Wrong error
[22m Expected: [32mArgument of type '"1"' is not assignable to parameter of type 'number'.[39m
Got: [31mArgument of type 'string' is not assignable to parameter of type 'number'.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:9:7:[39m[1m Wrong error
[22m Expected: [32mWrong[39m
Got: [31mExpected 3 arguments, but got 2.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:12:20:[39m[1m Unexpected error
[22m [31mExpected 1 arguments, but got 2.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:15:12:[39m[1m Wrong error
[22m Expected: [32mnot assignable to parameter of type '"set" | "tick"'[39m
Got: [31mArgument of type '"unknown"' is not assignable to parameter of type 'keyof Events'.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:11:1:[39m[1m Error was not found
[22m [31mMissed[39m
"
`;
exports[`checks mixed tests 1`] = `
"[33m-[39m Check types
[32m✔[39m Check types
[32m✔ [39m[90ma/[37merrors.ts[90m[39m
[32m✔ [39m[90ma/[37mtypes.ts[90m[39m
"
`;
exports[`checks negative tests 1`] = `
"[33m-[39m Check types
[31m✖[39m Check types
[31m✖ [90m[31ma.d.ts[90m[31m:1:18:[39m[1m Type error [90mTS7010[39m
[22m [31m'a', which lacks return-type annotation, implicitly has an 'any' return type.[39m
[31m✖ [90mtest/[31ma.errors.ts[90m[31m:4:10:[39m[1m Wrong error
[22m Expected: [32mArgument of type '"1"' is not assignable to parameter of type 'number'.[39m
Got: [31mArgument of type 'string' is not assignable to parameter of type 'number'.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:9:7:[39m[1m Wrong error
[22m Expected: [32mWrong[39m
Got: [31mExpected 3 arguments, but got 2.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:12:20:[39m[1m Unexpected error
[22m [31mExpected 1 arguments, but got 2.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:15:12:[39m[1m Wrong error
[22m Expected: [32mnot assignable to parameter of type '"set" | "tick"'[39m
Got: [31mArgument of type '"unknown"' is not assignable to parameter of type 'keyof Events'.[39m
[31m✖ [90mtest/[31mb.errors.ts[90m[31m:11:1:[39m[1m Error was not found
[22m [31mMissed[39m
"
`;
exports[`checks positive tests 1`] = `
"[33m-[39m Check types
[31m✖[39m Check types
[31m✖ [90mtest/[31mtypes.ts[90m[31m:3:14:[39m[1m Type error [90mTS2345[39m
[22m [31mArgument of type 'string' is not assignable to parameter of type 'number'.[39m
[31m✖ [90mtest/[31merrors.ts[90m[31m:4:14:[39m[1m Wrong error
[22m Expected: [32mArgument of type '"1"' is not assignable to parameter of type 'number'.[39m
Got: [31mArgument of type 'string' is not assignable to parameter of type 'number'.[39m
"
`;
exports[`loads custom tsconfig.json 1`] = `
"[33m-[39m Check types
[32m✔[39m Check types
[32m✔ [39m[90m[37mtypes.ts[90m[39m
"
`;
exports[`loads custom tsconfig.json with extends property 1`] = `
"[33m-[39m Check types
[32m✔[39m Check types
[32m✔ [39m[90m[37mindex.errors.ts[90m[39m
"
`;
exports[`supports simple cases 1`] = `
"[33m-[39m Check types
[32m✔[39m Check types
[32m✔ [39m[90mtest/[37merrors.ts[90m[39m
[32m✔ [39m[90mtest/[37mtypes.ts[90m[39m
"
`;