@@ -11,7 +11,7 @@ test('eval TypeScript ESM syntax', async () => {
11
11
const text: string = 'Hello, TypeScript!'
12
12
console.log(util.styleText('red', text));` ] ) ;
13
13
14
- match ( result . stderr , / T y p e S t r i p p i n g i s a n e x p e r i m e n t a l f e a t u r e a n d m i g h t c h a n g e a t a n y t i m e / ) ;
14
+ strictEqual ( result . stderr , '' ) ;
15
15
match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
16
16
strictEqual ( result . code , 0 ) ;
17
17
} ) ;
@@ -24,7 +24,7 @@ test('eval TypeScript ESM syntax with input-type module', async () => {
24
24
const text: string = 'Hello, TypeScript!'
25
25
console.log(util.styleText('red', text));` ] ) ;
26
26
27
- match ( result . stderr , / T y p e S t r i p p i n g i s a n e x p e r i m e n t a l f e a t u r e a n d m i g h t c h a n g e a t a n y t i m e / ) ;
27
+ strictEqual ( result . stderr , '' ) ;
28
28
match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
29
29
strictEqual ( result . code , 0 ) ;
30
30
} ) ;
@@ -36,7 +36,7 @@ test('eval TypeScript CommonJS syntax', async () => {
36
36
const text: string = 'Hello, TypeScript!'
37
37
console.log(util.styleText('red', text));` ] ) ;
38
38
match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
39
- match ( result . stderr , / E x p e r i m e n t a l W a r n i n g : T y p e S t r i p p i n g i s a n e x p e r i m e n t a l / ) ;
39
+ strictEqual ( result . stderr , '' ) ;
40
40
strictEqual ( result . code , 0 ) ;
41
41
} ) ;
42
42
@@ -72,7 +72,7 @@ test('TypeScript ESM syntax not specified', async () => {
72
72
`import util from 'node:util'
73
73
const text: string = 'Hello, TypeScript!'
74
74
console.log(text);` ] ) ;
75
- match ( result . stderr , / E x p e r i m e n t a l W a r n i n g : T y p e S t r i p p i n g i s a n e x p e r i m e n t a l / ) ;
75
+ strictEqual ( result . stderr , '' ) ;
76
76
match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
77
77
strictEqual ( result . code , 0 ) ;
78
78
} ) ;
@@ -162,7 +162,7 @@ test('check warning is emitted when eval TypeScript CommonJS syntax', async () =
162
162
`const util = require('node:util');
163
163
const text: string = 'Hello, TypeScript!'
164
164
console.log(util.styleText('red', text));` ] ) ;
165
- match ( result . stderr , / E x p e r i m e n t a l W a r n i n g : T y p e S t r i p p i n g i s a n e x p e r i m e n t a l / ) ;
165
+ strictEqual ( result . stderr , '' ) ;
166
166
match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
167
167
strictEqual ( result . code , 0 ) ;
168
168
} ) ;
0 commit comments