@@ -92,17 +92,17 @@ test('should throw an error when a flag is declared twice', async () => {
9292 assert . strictEqual ( result . code , 9 ) ;
9393} ) ;
9494
95- test ( 'should override env-file' , onlyWithAmaroAndNodeOptions , async ( ) => {
95+ test ( 'should not override env-file' , onlyWithAmaroAndNodeOptions , async ( ) => {
9696 const result = await spawnPromisified ( process . execPath , [
9797 '--no-warnings' ,
9898 '--experimental-config-file' ,
9999 fixtures . path ( 'rc/transform-types.json' ) ,
100100 '--env-file' , fixtures . path ( 'dotenv/node-options-no-tranform.env' ) ,
101101 fixtures . path ( 'typescript/ts/transformation/test-enum.ts' ) ,
102102 ] ) ;
103- assert . strictEqual ( result . stderr , '' ) ;
104- assert . match ( result . stdout , / H e l l o , T y p e S c r i p t ! / ) ;
105- assert . strictEqual ( result . code , 0 ) ;
103+ assert . match ( result . stderr , / S y n t a x E r r o r / ) ;
104+ assert . strictEqual ( result . stdout , '' ) ;
105+ assert . strictEqual ( result . code , 1 ) ;
106106} ) ;
107107
108108test ( 'should not override NODE_OPTIONS' , onlyWithAmaro , async ( ) => {
0 commit comments