Skip to content

Commit 7b6db80

Browse files
committed
Add import variations tests
1 parent f97bf7a commit 7b6db80

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import $Math from 'core-js/full/math';
2+
import $MathIndex from 'core-js/full/math/index';
3+
import $MathIndexJS from 'core-js/full/math/index.js';
4+
import $Array from 'core-js/full/array';
5+
import $ArrayIndex from 'core-js/full/array/index';
6+
import $ArrayIndexJS from 'core-js/full/array/index.js';
7+
import chunks from 'core-js/full/iterator/chunks';
8+
import chunksJS from 'core-js/full/iterator/chunks.js';
9+
10+
$Math.f16round(7.9999999);
11+
$MathIndex.f16round(7.9999999);
12+
$MathIndexJS.f16round(7.9999999);
13+
14+
$Array.from([1, 2, 3]);
15+
$ArrayIndex.from([1, 2, 3]);
16+
$ArrayIndexJS.from([1, 2, 3]);
17+
18+
declare const num: Iterator<number>;
19+
chunks(num, 2);
20+
chunksJS(num, 2);
21+
22+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["./imports.ts"],
4+
"compilerOptions": {
5+
"types": ["@core-js/types"]
6+
}
7+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import $Math from '@core-js/pure/full/math';
2+
import $MathIndex from '@core-js/pure/full/math/index';
3+
import $MathIndexJS from '@core-js/pure/full/math/index.js';
4+
import $Array from '@core-js/pure/full/array';
5+
import $ArrayIndex from '@core-js/pure/full/array/index';
6+
import $ArrayIndexJS from '@core-js/pure/full/array/index.js';
7+
import chunks from '@core-js/pure/full/iterator/chunks';
8+
import chunksJS from '@core-js/pure/full/iterator/chunks.js';
9+
10+
$Math.f16round(7.9999999);
11+
$MathIndex.f16round(7.9999999);
12+
$MathIndexJS.f16round(7.9999999);
13+
14+
$Array.from([1, 2, 3]);
15+
$ArrayIndex.from([1, 2, 3]);
16+
$ArrayIndexJS.from([1, 2, 3]);
17+
18+
declare const num: Iterator<number>;
19+
chunks(num, 2);
20+
chunksJS(num, 2);
21+
22+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["./imports.ts"],
4+
"compilerOptions": {
5+
"types": ["@core-js/types/pure"]
6+
}
7+
}

tests/type-definitions/runner.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ tasks.push(
164164
{ args: ['-p', 'typescript@5.9', 'tsc', '-p', 'entries/stable/tsconfig.json'] },
165165
{ args: ['-p', 'typescript@5.9', 'tsc', '-p', 'entries/es/tsconfig.json'] },
166166
{ args: ['-p', 'typescript@5.9', 'tsc', '-p', 'entries/proposals/tsconfig.json'] },
167+
{ args: ['-p', 'typescript@5.9', 'tsc', '-p', 'entries/global/tsconfig.json'] },
168+
{ args: ['-p', 'typescript@5.9', 'tsc', '-p', 'entries/pure/tsconfig.json'] },
167169
);
168170

169171
let envs;

0 commit comments

Comments
 (0)