-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
runner.test.ts.snap
104 lines (93 loc) · 3.46 KB
/
runner.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
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`should fail > typecheck files 1`] = `
"TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Unused '@ts-expect-error' directive.
TypeCheckError: Expected 1 arguments, but got 0."
`;
exports[`should fail > typecheck files 2`] = `
" FAIL fail.test-d.ts > nested suite
TypeCheckError: Expected 1 arguments, but got 0.
❯ fail.test-d.ts:15:19
13| })
14|
15| expectTypeOf(1).toBeVoid()
| ^
16| })"
`;
exports[`should fail > typecheck files 3`] = `
" FAIL expect-error.test-d.ts > failing test with expect-error
TypeCheckError: Unused '@ts-expect-error' directive.
❯ expect-error.test-d.ts:4:3
2|
3| test('failing test with expect-error', () => {
4| // @ts-expect-error expect nothing
| ^
5| expectTypeOf(1).toEqualTypeOf<number>()"
`;
exports[`should fail > typecheck files 4`] = `
" FAIL fail.test-d.ts > failing test
TypeCheckError: Expected 1 arguments, but got 0.
❯ fail.test-d.ts:4:19
2|
3| test('failing test', () => {
4| expectTypeOf(1).toEqualTypeOf<string>()
| ^
5| })"
`;
exports[`should fail > typecheck files 5`] = `
" FAIL fail.test-d.ts > nested suite > nested 2 > failing test 2
TypeCheckError: Expected 1 arguments, but got 0.
❯ fail.test-d.ts:10:23
8| describe('nested 2', () => {
9| test('failing test 2', () => {
10| expectTypeOf(1).toBeVoid()
| ^
11| expectTypeOf(1).toBeUndefined()"
`;
exports[`should fail > typecheck files 6`] = `
" FAIL fail.test-d.ts > nested suite > nested 2 > failing test 2
TypeCheckError: Expected 1 arguments, but got 0.
❯ fail.test-d.ts:11:23
9| test('failing test 2', () => {
10| expectTypeOf(1).toBeVoid()
11| expectTypeOf(1).toBeUndefined()
| ^
12| })"
`;
exports[`should fail > typecheck files 7`] = `
" FAIL js-fail.test-d.js > js test fails
TypeCheckError: Expected 1 arguments, but got 0.
❯ js-fail.test-d.js:6:19
4|
5| test('js test fails', () => {
6| expectTypeOf(1).toBeArray()
| ^
7| })"
`;
exports[`should fail > typecheck files 8`] = `
" FAIL only.test-d.ts > failing test
TypeCheckError: Expected 1 arguments, but got 0.
❯ only.test-d.ts:4:19
2|
3| test.only('failing test', () => {
4| expectTypeOf(1).toEqualTypeOf<string>()
| ^
5| })"
`;
exports[`should fail > typechecks empty "include" but with tests 1`] = `
"Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow semver, please pin Vitest's version when using it.
⎯⎯⎯⎯⎯⎯ Typecheck Error ⎯⎯⎯⎯⎯⎯⎯
Error: error TS18003: No inputs were found in config file '<root>/tsconfig.vitest-temp.json'. Specified 'include' paths were '[\\"src\\"]' and 'exclude' paths were '[\\"**/dist/**\\",\\"./dist\\"]'.
"
`;
exports[`should fail > typechecks with custom tsconfig 1`] = `
"TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0.
TypeCheckError: Expected 1 arguments, but got 0."
`;