You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeCheckError: Type 'string' does not satisfy the constraint '"Expected string, Actual number"'.
39
39
❯ fail.test-d.ts:4:33
40
40
2|
@@ -45,7 +45,7 @@ TypeCheckError: Type 'string' does not satisfy the constraint '"Expected string,
45
45
`;
46
46
47
47
exports[`should fail > typecheck files 5`] =`
48
-
" FAIL fail.test-d.ts:9:5 > nested suite > nested 2 > failing test 2
48
+
" FAIL fail.test-d.ts:9 > nested suite > nested 2 > failing test 2
49
49
TypeCheckError: This expression is not callable. Type 'ExpectVoid<number>' has no call signatures.
50
50
❯ fail.test-d.ts:10:23
51
51
8| describe('nested 2', () => {
@@ -56,7 +56,7 @@ TypeCheckError: This expression is not callable. Type 'ExpectVoid<number>' has n
56
56
`;
57
57
58
58
exports[`should fail > typecheck files 6`] =`
59
-
" FAIL fail.test-d.ts:9:5 > nested suite > nested 2 > failing test 2
59
+
" FAIL fail.test-d.ts:9 > nested suite > nested 2 > failing test 2
60
60
TypeCheckError: This expression is not callable. Type 'ExpectUndefined<number>' has no call signatures.
61
61
❯ fail.test-d.ts:11:23
62
62
9| test('failing test 2', () => {
@@ -67,7 +67,7 @@ TypeCheckError: This expression is not callable. Type 'ExpectUndefined<number>'
67
67
`;
68
68
69
69
exports[`should fail > typecheck files 7`] = `
70
-
" FAIL js-fail.test-d.js:5:1 > js test fails
70
+
" FAIL js-fail.test-d.js:5 > js test fails
71
71
TypeCheckError: This expression is not callable. Type 'ExpectArray<number>' has no call signatures.
72
72
❯ js-fail.test-d.js:6:19
73
73
4|
@@ -78,7 +78,7 @@ TypeCheckError: This expression is not callable. Type 'ExpectArray<number>' has
78
78
`;
79
79
80
80
exports[`should fail > typecheck files 8`] = `
81
-
" FAIL node-types.test-d.ts:3:1 > buffer is not available
81
+
" FAIL node-types.test-d.ts:3 > buffer is not available
82
82
TypeCheckError: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try \`npm i --save-dev @types/node\` and then add 'node' to the types field in your tsconfig.
83
83
❯ node-types.test-d.ts:4:3
84
84
2|
@@ -89,7 +89,7 @@ TypeCheckError: Cannot find name 'Buffer'. Do you need to install type definitio
89
89
`;
90
90
91
91
exports[`should fail > typecheck files 9`] = `
92
-
" FAIL only.test-d.ts:3:1 > failing test
92
+
" FAIL only.test-d.ts:3 > failing test
93
93
TypeCheckError: Type 'string' does not satisfy the constraint '"Expected string, Actual number"'.
0 commit comments