Skip to content

Commit f2fbacf

Browse files
committed
Type tests folder refactoring
1 parent fa66cff commit f2fbacf

File tree

9 files changed

+6
-35
lines changed

9 files changed

+6
-35
lines changed
File renamed without changes.

tests/type-definitions/runner.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const LIBS = [
3838
// null, // fails on web types
3939
];
4040
const TARGET_EXCLUDES = {
41-
'es6': ['**/*es2018*test.ts'],
42-
}
41+
es6: ['**/*es2018*test.ts'],
42+
};
4343

4444
let tested = 0;
4545
let failed = 0;
@@ -128,10 +128,8 @@ async function prepareEnvironment(environments, coreJsTypes, targetExcludes) {
128128
}
129129

130130
await $`npx -p typescript@5.9 tsc`;
131-
await $`npx -p typescript@5.9 tsc -p tsconfig.templates.import.json`;
132-
await $`npx -p typescript@5.9 tsc -p tsconfig.entries.json`;
133-
await $`npx -p typescript@5.9 tsc -p tsconfig.entries.pure.json`;
134-
await $`npx -p typescript@5.9 -p @types/node@24 tsc -p tsconfig.templates.require.json`;
131+
await $`npx -p typescript@5.9 tsc -p templates/tsconfig.json`;
132+
await $`npx -p typescript@5.9 -p @types/node@24 tsc -p templates/tsconfig.require.json`;
135133

136134
if (!ALL_TESTS) {
137135
await $`npx -p typescript@5.6 tsc -p pure/tsconfig.es6.json --target es6 --lib es6`;
File renamed without changes.
File renamed without changes.

tests/type-definitions/tsconfig.templates.import.json renamed to tests/type-definitions/templates/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"types": [
55
"@core-js/types/pure"

tests/type-definitions/tsconfig.templates.require.json renamed to tests/type-definitions/templates/tsconfig.require.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"types": [
55
"@core-js/types/pure",

tests/type-definitions/tsconfig.entries.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/type-definitions/tsconfig.entries.pure.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)