@@ -6,7 +6,7 @@ if (!process.config.variables.node_use_amaro) skip('Requires Amaro');
66
77test ( 'eval TypeScript ESM syntax' , async ( ) => {
88 const result = await spawnPromisified ( process . execPath , [
9- '--experimental-strip-types' ,
9+ '--experimental-strip-input- types' ,
1010 '--eval' ,
1111 `import util from 'node:util'
1212 const text: string = 'Hello, TypeScript!'
@@ -19,7 +19,7 @@ test('eval TypeScript ESM syntax', async () => {
1919
2020test ( 'eval TypeScript ESM syntax with input-type module' , async ( ) => {
2121 const result = await spawnPromisified ( process . execPath , [
22- '--experimental-strip-types' ,
22+ '--experimental-strip-input- types' ,
2323 '--input-type=module' ,
2424 '--eval' ,
2525 `import util from 'node:util'
@@ -33,7 +33,7 @@ test('eval TypeScript ESM syntax with input-type module', async () => {
3333
3434test ( 'eval TypeScript CommonJS syntax' , async ( ) => {
3535 const result = await spawnPromisified ( process . execPath , [
36- '--experimental-strip-types' ,
36+ '--experimental-strip-input- types' ,
3737 '--eval' ,
3838 `const util = require('node:util');
3939 const text: string = 'Hello, TypeScript!'
@@ -46,7 +46,7 @@ test('eval TypeScript CommonJS syntax', async () => {
4646
4747test ( 'eval TypeScript CommonJS syntax with input-type commonjs' , async ( ) => {
4848 const result = await spawnPromisified ( process . execPath , [
49- '--experimental-strip-types' ,
49+ '--experimental-strip-input- types' ,
5050 '--input-type=commonjs' ,
5151 '--eval' ,
5252 `const util = require('node:util');
@@ -60,7 +60,7 @@ test('eval TypeScript CommonJS syntax with input-type commonjs', async () => {
6060
6161test ( 'eval TypeScript CommonJS syntax by default' , async ( ) => {
6262 const result = await spawnPromisified ( process . execPath , [
63- '--experimental-strip-types' ,
63+ '--experimental-strip-input- types' ,
6464 '--eval' ,
6565 `const util = require('node:util');
6666 const text: string = 'Hello, TypeScript!'
@@ -74,7 +74,7 @@ test('eval TypeScript CommonJS syntax by default', async () => {
7474
7575test ( 'TypeScript ESM syntax not specified' , async ( ) => {
7676 const result = await spawnPromisified ( process . execPath , [
77- '--experimental-strip-types' ,
77+ '--experimental-strip-input- types' ,
7878 '--eval' ,
7979 `import util from 'node:util'
8080 const text: string = 'Hello, TypeScript!'
@@ -86,7 +86,7 @@ test('TypeScript ESM syntax not specified', async () => {
8686
8787test ( 'expect fail eval TypeScript CommonJS syntax with input-type module' , async ( ) => {
8888 const result = await spawnPromisified ( process . execPath , [
89- '--experimental-strip-types' ,
89+ '--experimental-strip-input- types' ,
9090 '--input-type=module' ,
9191 '--eval' ,
9292 `const util = require('node:util');
@@ -100,7 +100,7 @@ test('expect fail eval TypeScript CommonJS syntax with input-type module', async
100100
101101test ( 'expect fail eval TypeScript ESM syntax with input-type commonjs' , async ( ) => {
102102 const result = await spawnPromisified ( process . execPath , [
103- '--experimental-strip-types' ,
103+ '--experimental-strip-input- types' ,
104104 '--input-type=commonjs' ,
105105 '--eval' ,
106106 `import util from 'node:util'
@@ -113,7 +113,7 @@ test('expect fail eval TypeScript ESM syntax with input-type commonjs', async ()
113113
114114test ( 'check syntax error is thrown when passing invalid syntax' , async ( ) => {
115115 const result = await spawnPromisified ( process . execPath , [
116- '--experimental-strip-types' ,
116+ '--experimental-strip-input- types' ,
117117 '--eval' ,
118118 'enum Foo { A, B, C }' ] ) ;
119119 strictEqual ( result . stdout , '' ) ;
0 commit comments