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
* Fix bug where ts-node would try to use a @tsconfig/bases that is incompatible with the user's very old version of TS
* add ts 4.7 to test matrix
* adjust implicit tsconfig tests to understand and expect fallback to empty defaults when *none* of the tsconfig/bases are compatible
* fix useDefineForClassFields to be immune to implicit config
conditionally skip cases that use target incompatible with ts version
Add useDefineForClassFields test cases for es5 emit
* use more robust compatibility check: ask ts API to parse the options, check for errors
* Fix failing test where I guess swc decided to start quoting import strings differently?
* make more tests immune to blank implicit config
* jk about that quoting change :/
* fix test bug
test('implicitly uses @tsconfig/node14, @tsconfig/node16, @tsconfig/node18, or @tsconfig/node20 compilerOptions when both TS and node versions support it',async(t)=>{
@@ -36,16 +48,9 @@ test.suite('should use implicit @tsconfig/bases config when one is not loaded fr
36
48
t.like(JSON.parse(r1.stdout),{
37
49
compilerOptions: {
38
50
target,
39
-
lib: [lib],
51
+
lib,
40
52
},
41
53
});
42
-
43
-
constr2=awaitexec(`${BIN_PATH} -pe 10n`,{
44
-
cwd: t.context.tmpDir,
45
-
});
46
-
47
-
expect(r2.err).toBe(null);
48
-
expect(r2.stdout).toBe('10n\n');
49
54
});
50
55
51
56
test('implicitly loads @types/node even when not installed within local directory',async(t)=>{
@@ -73,8 +78,8 @@ test.suite('should use implicit @tsconfig/bases config when one is not loaded fr
73
78
});
74
79
75
80
test.suite('should bundle @tsconfig/bases to be used in your own tsconfigs',(test)=>{
76
-
// Older TS versions will complain about newer `target` and `lib` options
77
-
test.if(tsSupportsEs2022&&tsSupportsLibEs2023);
81
+
// Older TS versions will complain about newer `target`, `lib`, `module`, `moduleResolution` options
0 commit comments