@@ -7,7 +7,6 @@ if (!process.config.variables.node_use_amaro) skip('Requires Amaro');
7
7
8
8
test ( 'require a .ts file with explicit extension succeeds' , async ( ) => {
9
9
const result = await spawnPromisified ( process . execPath , [
10
- '--experimental-strip-types' ,
11
10
'--eval' ,
12
11
'require("./test-typescript.ts")' ,
13
12
'--no-warnings' ,
@@ -22,7 +21,6 @@ test('require a .ts file with explicit extension succeeds', async () => {
22
21
23
22
test ( 'eval require a .ts file with implicit extension fails' , async ( ) => {
24
23
const result = await spawnPromisified ( process . execPath , [
25
- '--experimental-strip-types' ,
26
24
'--eval' ,
27
25
'require("./test-typescript")' ,
28
26
'--no-warnings' ,
@@ -37,7 +35,6 @@ test('eval require a .ts file with implicit extension fails', async () => {
37
35
38
36
test ( 'eval require a .cts file with implicit extension fails' , async ( ) => {
39
37
const result = await spawnPromisified ( process . execPath , [
40
- '--experimental-strip-types' ,
41
38
'--eval' ,
42
39
'require("./test-cts-typescript")' ,
43
40
'--no-warnings' ,
@@ -52,7 +49,6 @@ test('eval require a .cts file with implicit extension fails', async () => {
52
49
53
50
test ( 'require a .ts file with implicit extension fails' , async ( ) => {
54
51
const result = await spawnPromisified ( process . execPath , [
55
- '--experimental-strip-types' ,
56
52
'--no-warnings' ,
57
53
fixtures . path ( 'typescript/cts/test-extensionless-require.ts' ) ,
58
54
] ) ;
@@ -64,7 +60,6 @@ test('require a .ts file with implicit extension fails', async () => {
64
60
65
61
test ( 'expect failure of an .mts file with CommonJS syntax' , async ( ) => {
66
62
const result = await spawnPromisified ( process . execPath , [
67
- '--experimental-strip-types' ,
68
63
fixtures . path ( 'typescript/cts/test-cts-but-module-syntax.cts' ) ,
69
64
] ) ;
70
65
@@ -75,7 +70,6 @@ test('expect failure of an .mts file with CommonJS syntax', async () => {
75
70
76
71
test ( 'execute a .cts file importing a .cts file' , async ( ) => {
77
72
const result = await spawnPromisified ( process . execPath , [
78
- '--experimental-strip-types' ,
79
73
'--no-warnings' ,
80
74
fixtures . path ( 'typescript/cts/test-require-commonjs.cts' ) ,
81
75
] ) ;
@@ -87,7 +81,6 @@ test('execute a .cts file importing a .cts file', async () => {
87
81
88
82
test ( 'execute a .cts file importing a .ts file export' , async ( ) => {
89
83
const result = await spawnPromisified ( process . execPath , [
90
- '--experimental-strip-types' ,
91
84
'--no-warnings' ,
92
85
fixtures . path ( 'typescript/cts/test-require-ts-file.cts' ) ,
93
86
] ) ;
@@ -99,7 +92,6 @@ test('execute a .cts file importing a .ts file export', async () => {
99
92
100
93
test ( 'execute a .cts file importing a .mts file export' , async ( ) => {
101
94
const result = await spawnPromisified ( process . execPath , [
102
- '--experimental-strip-types' ,
103
95
'--no-experimental-require-module' ,
104
96
fixtures . path ( 'typescript/cts/test-require-mts-module.cts' ) ,
105
97
] ) ;
@@ -111,7 +103,6 @@ test('execute a .cts file importing a .mts file export', async () => {
111
103
112
104
test ( 'execute a .cts file importing a .mts file export' , async ( ) => {
113
105
const result = await spawnPromisified ( process . execPath , [
114
- '--experimental-strip-types' ,
115
106
'--experimental-require-module' ,
116
107
fixtures . path ( 'typescript/cts/test-require-mts-module.cts' ) ,
117
108
] ) ;
@@ -122,7 +113,6 @@ test('execute a .cts file importing a .mts file export', async () => {
122
113
123
114
test ( 'expect failure of a .cts file in node_modules' , async ( ) => {
124
115
const result = await spawnPromisified ( process . execPath , [
125
- '--experimental-strip-types' ,
126
116
fixtures . path ( 'typescript/cts/test-cts-node_modules.cts' ) ,
127
117
] ) ;
128
118
@@ -133,7 +123,6 @@ test('expect failure of a .cts file in node_modules', async () => {
133
123
134
124
test ( 'expect failure of a .ts file in node_modules' , async ( ) => {
135
125
const result = await spawnPromisified ( process . execPath , [
136
- '--experimental-strip-types' ,
137
126
fixtures . path ( 'typescript/cts/test-ts-node_modules.cts' ) ,
138
127
] ) ;
139
128
@@ -144,7 +133,6 @@ test('expect failure of a .ts file in node_modules', async () => {
144
133
145
134
test ( 'expect failure of a .cts requiring esm without default type module' , async ( ) => {
146
135
const result = await spawnPromisified ( process . execPath , [
147
- '--experimental-strip-types' ,
148
136
'--no-experimental-require-module' ,
149
137
fixtures . path ( 'typescript/cts/test-mts-node_modules.cts' ) ,
150
138
] ) ;
@@ -156,7 +144,6 @@ test('expect failure of a .cts requiring esm without default type module', async
156
144
157
145
test ( 'expect failure of a .cts file requiring esm in node_modules' , async ( ) => {
158
146
const result = await spawnPromisified ( process . execPath , [
159
- '--experimental-strip-types' ,
160
147
'--experimental-require-module' ,
161
148
fixtures . path ( 'typescript/cts/test-mts-node_modules.cts' ) ,
162
149
] ) ;
0 commit comments