Skip to content

Commit 516bde8

Browse files
committed
Improve type tests
1 parent 5c65e41 commit 516bde8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/type-definitions/runner.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ await $`npx -p typescript@5.9 tsc -p tsconfig.entries.pure.json`;
123123
await $`npx -p typescript@5.9 -p @types/node@24 tsc -p tsconfig.templates.require.json`;
124124

125125
if (!ALL_TESTS) {
126+
await $`npx -p typescript@5.6 tsc -p pure/tsconfig.json --target es6 --lib es6`;
127+
await $`npx -p typescript@5.6 tsc -p pure/tsconfig.json --target esnext --lib esnext`;
128+
await $`npx -p typescript@5.6 tsc -p global/tsconfig.json --target es6 --lib es6,dom`;
129+
await $`npx -p typescript@5.6 tsc -p global/tsconfig.json --target esnext --lib esnext,dom`;
130+
126131
await $`npx -p typescript@5.9 tsc -p pure/tsconfig.json --target es6 --lib es6`;
127132
await $`npx -p typescript@5.9 tsc -p pure/tsconfig.json --target es2023 --lib es2023`;
128133
await $`npx -p typescript@5.9 tsc -p pure/tsconfig.json --target esnext --lib esnext`;
@@ -135,4 +140,5 @@ if (!ALL_TESTS) {
135140
await runLimited(taskConfigs, Math.max(numCPUs - 1, 1));
136141
await clearTmpDir();
137142
echo(`Tested: ${ chalk.green(tested) }, Failed: ${ chalk.red(failed) }`);
143+
if (failed) process.exit(1);
138144
}

0 commit comments

Comments
 (0)