Skip to content

Commit eee2cab

Browse files
committed
Accept baseline
1 parent 6337a7e commit eee2cab

10 files changed

+89
-89
lines changed

tests/baselines/reference/importAssertion1(module=commonjs).errors.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
tests/cases/conformance/importAssertion/1.ts(1,14): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
2-
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
3-
tests/cases/conformance/importAssertion/1.ts(3,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
4-
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
5-
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
1+
tests/cases/conformance/importAssertion/1.ts(1,14): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2+
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3+
tests/cases/conformance/importAssertion/1.ts(3,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4+
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
5+
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
66
tests/cases/conformance/importAssertion/3.ts(2,25): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
77
tests/cases/conformance/importAssertion/3.ts(3,25): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
88
tests/cases/conformance/importAssertion/3.ts(4,25): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
99
tests/cases/conformance/importAssertion/3.ts(5,26): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
1010
tests/cases/conformance/importAssertion/3.ts(7,25): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
11-
tests/cases/conformance/importAssertion/3.ts(8,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
11+
tests/cases/conformance/importAssertion/3.ts(8,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
1212
tests/cases/conformance/importAssertion/3.ts(9,25): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
1313
tests/cases/conformance/importAssertion/3.ts(10,25): error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
1414
tests/cases/conformance/importAssertion/3.ts(10,52): error TS1009: Trailing comma not allowed.
@@ -21,13 +21,13 @@ tests/cases/conformance/importAssertion/3.ts(10,52): error TS1009: Trailing comm
2121
==== tests/cases/conformance/importAssertion/1.ts (3 errors) ====
2222
import './0' assert { type: "json" }
2323
~~~~~~~~~~~~~~~~~~~~~~~
24-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
24+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2525
import { a, b } from './0' assert { "type": "json" }
2626
~~~~~~~~~~~~~~~~~~~~~~~~~
27-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
27+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2828
import * as foo from './0' assert { type: "json" }
2929
~~~~~~~~~~~~~~~~~~~~~~~
30-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
30+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3131
a;
3232
b;
3333
foo.a;
@@ -36,10 +36,10 @@ tests/cases/conformance/importAssertion/3.ts(10,52): error TS1009: Trailing comm
3636
==== tests/cases/conformance/importAssertion/2.ts (2 errors) ====
3737
import { a, b } from './0' assert {}
3838
~~~~~~~~~
39-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
39+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4040
import { a as c, b as d } from './0' assert { a: "a", b: "b", c: "c" }
4141
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
42+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4343
a;
4444
b;
4545
c;
@@ -65,7 +65,7 @@ tests/cases/conformance/importAssertion/3.ts(10,52): error TS1009: Trailing comm
6565
!!! error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.
6666
const f = import()
6767
~~~~~~~~
68-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
68+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
6969
const g = import('./0', {}, {})
7070
~~
7171
!!! error TS1324: Dynamic import only supports a second argument when the '--module' option is set to 'esnext'.

tests/baselines/reference/importAssertion1(module=es2015).errors.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
tests/cases/conformance/importAssertion/1.ts(1,14): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
2-
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
3-
tests/cases/conformance/importAssertion/1.ts(3,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
4-
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
5-
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
1+
tests/cases/conformance/importAssertion/1.ts(1,14): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2+
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3+
tests/cases/conformance/importAssertion/1.ts(3,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4+
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
5+
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
66
tests/cases/conformance/importAssertion/3.ts(1,11): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'.
77
tests/cases/conformance/importAssertion/3.ts(2,11): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'.
88
tests/cases/conformance/importAssertion/3.ts(3,11): error TS1323: Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'.
@@ -21,13 +21,13 @@ tests/cases/conformance/importAssertion/3.ts(10,11): error TS1323: Dynamic impor
2121
==== tests/cases/conformance/importAssertion/1.ts (3 errors) ====
2222
import './0' assert { type: "json" }
2323
~~~~~~~~~~~~~~~~~~~~~~~
24-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
24+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2525
import { a, b } from './0' assert { "type": "json" }
2626
~~~~~~~~~~~~~~~~~~~~~~~~~
27-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
27+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2828
import * as foo from './0' assert { type: "json" }
2929
~~~~~~~~~~~~~~~~~~~~~~~
30-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
30+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3131
a;
3232
b;
3333
foo.a;
@@ -36,10 +36,10 @@ tests/cases/conformance/importAssertion/3.ts(10,11): error TS1323: Dynamic impor
3636
==== tests/cases/conformance/importAssertion/2.ts (2 errors) ====
3737
import { a, b } from './0' assert {}
3838
~~~~~~~~~
39-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
39+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4040
import { a as c, b as d } from './0' assert { a: "a", b: "b", c: "c" }
4141
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
42+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4343
a;
4444
b;
4545
c;

tests/baselines/reference/importAssertion1(module=esnext).errors.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
tests/cases/conformance/importAssertion/3.ts(2,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
2-
tests/cases/conformance/importAssertion/3.ts(3,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
3-
tests/cases/conformance/importAssertion/3.ts(4,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
4-
tests/cases/conformance/importAssertion/3.ts(5,12): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
5-
tests/cases/conformance/importAssertion/3.ts(7,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
6-
tests/cases/conformance/importAssertion/3.ts(8,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
7-
tests/cases/conformance/importAssertion/3.ts(9,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
8-
tests/cases/conformance/importAssertion/3.ts(10,11): message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
1+
tests/cases/conformance/importAssertion/3.ts(2,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
2+
tests/cases/conformance/importAssertion/3.ts(3,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
3+
tests/cases/conformance/importAssertion/3.ts(4,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
4+
tests/cases/conformance/importAssertion/3.ts(5,12): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
5+
tests/cases/conformance/importAssertion/3.ts(7,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
6+
tests/cases/conformance/importAssertion/3.ts(8,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
7+
tests/cases/conformance/importAssertion/3.ts(9,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
8+
tests/cases/conformance/importAssertion/3.ts(10,11): message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
99

1010

1111
==== tests/cases/conformance/importAssertion/0.ts (0 errors) ====
@@ -33,28 +33,28 @@ tests/cases/conformance/importAssertion/3.ts(10,11): message TS1433: Dynamic imp
3333
const a = import('./0')
3434
const b = import('./0', { assert: { type: "json" } })
3535
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
36+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
3737
const c = import('./0', { assert: { type: "json", ttype: "typo" } })
3838
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
39+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
4040
const d = import('./0', { assert: {} })
4141
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
42+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
4343
const dd = import('./0', {})
4444
~~~~~~~~~~~~~~~~~
45-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
45+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
4646
declare function foo(): any;
4747
const e = import('./0', foo())
4848
~~~~~~~~~~~~~~~~~~~~
49-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
49+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
5050
const f = import()
5151
~~~~~~~~
52-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
52+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
5353
const g = import('./0', {}, {})
5454
~~~~~~~~~~~~~~~~~~~~~
55-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
55+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
5656
const h = import('./0', { assert: { type: "json" }},)
5757
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58-
!!! message TS1433: Dynamic import must only have a specifier and an optional assertion as arguments
58+
!!! message TS1434: Dynamic import must only have a specifier and an optional assertion as arguments
5959

6060

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
tests/cases/conformance/importAssertion/1.ts(1,22): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
2-
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
3-
tests/cases/conformance/importAssertion/1.ts(3,21): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
4-
tests/cases/conformance/importAssertion/1.ts(4,27): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
5-
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
6-
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
1+
tests/cases/conformance/importAssertion/1.ts(1,22): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2+
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3+
tests/cases/conformance/importAssertion/1.ts(3,21): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
4+
tests/cases/conformance/importAssertion/1.ts(4,27): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
5+
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
6+
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
77

88

99
==== tests/cases/conformance/importAssertion/0.ts (0 errors) ====
@@ -13,22 +13,22 @@ tests/cases/conformance/importAssertion/2.ts(2,38): error TS2803: Import asserti
1313
==== tests/cases/conformance/importAssertion/1.ts (4 errors) ====
1414
export {} from './0' assert { type: "json" }
1515
~~~~~~~~~~~~~~~~~~~~~~~
16-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
16+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
1717
export { a, b } from './0' assert { type: "json" }
1818
~~~~~~~~~~~~~~~~~~~~~~~
19-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
19+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2020
export * from './0' assert { type: "json" }
2121
~~~~~~~~~~~~~~~~~~~~~~~
22-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
22+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2323
export * as ns from './0' assert { type: "json" }
2424
~~~~~~~~~~~~~~~~~~~~~~~
25-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
25+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
2626

2727
==== tests/cases/conformance/importAssertion/2.ts (2 errors) ====
2828
export { a, b } from './0' assert {}
2929
~~~~~~~~~
30-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
30+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3131
export { a as c, b as d } from './0' assert { a: "a", b: "b", c: "c" }
3232
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33-
!!! error TS2803: Import assertions are only supported when the '--module' option is set to 'esnext'.
33+
!!! error TS2815: Import assertions are only supported when the '--module' option is set to 'esnext'.
3434

tests/baselines/reference/importAssertion2(module=commonjs).types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export * from './0' assert { type: "json" }
2020
>type : any
2121

2222
export * as ns from './0' assert { type: "json" }
23-
>ns : typeof ns
23+
>ns : typeof import("tests/cases/conformance/importAssertion/0")
2424
>type : any
2525

2626
=== tests/cases/conformance/importAssertion/2.ts ===

0 commit comments

Comments
 (0)