@@ -11,7 +11,7 @@ test('eval TypeScript ESM syntax', async () => {
1111 const text: string = 'Hello, TypeScript!'
1212 console.log(util.styleText('red', text));` ] ) ;
1313
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 , '' ) ;
1515 match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
1616 strictEqual ( result . code , 0 ) ;
1717} ) ;
@@ -24,7 +24,7 @@ test('eval TypeScript ESM syntax with input-type module', async () => {
2424 const text: string = 'Hello, TypeScript!'
2525 console.log(util.styleText('red', text));` ] ) ;
2626
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 , '' ) ;
2828 match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
2929 strictEqual ( result . code , 0 ) ;
3030} ) ;
@@ -36,7 +36,7 @@ test('eval TypeScript CommonJS syntax', async () => {
3636 const text: string = 'Hello, TypeScript!'
3737 console.log(util.styleText('red', text));` ] ) ;
3838 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 , '' ) ;
4040 strictEqual ( result . code , 0 ) ;
4141} ) ;
4242
@@ -72,7 +72,7 @@ test('TypeScript ESM syntax not specified', async () => {
7272 `import util from 'node:util'
7373 const text: string = 'Hello, TypeScript!'
7474 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 , '' ) ;
7676 match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
7777 strictEqual ( result . code , 0 ) ;
7878} ) ;
@@ -162,7 +162,7 @@ test('check warning is emitted when eval TypeScript CommonJS syntax', async () =
162162 `const util = require('node:util');
163163 const text: string = 'Hello, TypeScript!'
164164 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 , '' ) ;
166166 match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
167167 strictEqual ( result . code , 0 ) ;
168168} ) ;
0 commit comments