@@ -165,7 +165,7 @@ test('should throw at unknown flag', async () => {
165165 `--experimental-config-file=${ fixtures . path ( 'rc/unknown-flag.json' ) } ` ,
166166 '-p' , '"Hello, World!"' ,
167167 ] ) ;
168- assert . match ( result . stderr , / U n k n o w n o r n o t a l l o w e d o p t i o n s o m e - u n k n o w n - f l a g f o r n a m e s p a c e n o d e O p t i o n s / ) ;
168+ assert . match ( result . stderr , / \/ n o d e O p t i o n s a d d i t i o n a l p r o p e r t y n o t a l l o w e d : s o m e - u n k n o w n - f l a g / ) ;
169169 assert . strictEqual ( result . stdout , '' ) ;
170170 assert . strictEqual ( result . code , 9 ) ;
171171} ) ;
@@ -176,7 +176,7 @@ test('should throw at flag not available in NODE_OPTIONS', async () => {
176176 `--experimental-config-file=${ fixtures . path ( 'rc/not-node-options-flag.json' ) } ` ,
177177 '-p' , '"Hello, World!"' ,
178178 ] ) ;
179- assert . match ( result . stderr , / U n k n o w n o r n o t a l l o w e d o p t i o n t e s t f o r n a m e s p a c e n o d e O p t i o n s / ) ;
179+ assert . match ( result . stderr , / \/ n o d e O p t i o n s a d d i t i o n a l p r o p e r t y n o t a l l o w e d : t e s t / ) ;
180180 assert . strictEqual ( result . stdout , '' ) ;
181181 assert . strictEqual ( result . code , 9 ) ;
182182} ) ;
@@ -210,7 +210,7 @@ test('v8 flag should not be allowed in config file', async () => {
210210 `--experimental-config-file=${ fixtures . path ( 'rc/v8-flag.json' ) } ` ,
211211 '-p' , '"Hello, World!"' ,
212212 ] ) ;
213- assert . match ( result . stderr , / V 8 f l a g - - a b o r t - o n - u n c a u g h t - e x c e p t i o n i s c u r r e n t l y n o t s u p p o r t e d / ) ;
213+ assert . match ( result . stderr , / \/ n o d e O p t i o n s a d d i t i o n a l p r o p e r t y n o t a l l o w e d : a b o r t - o n - u n c a u g h t - e x c e p t i o n / ) ;
214214 assert . strictEqual ( result . stdout , '' ) ;
215215 assert . strictEqual ( result . code , 9 ) ;
216216} ) ;
@@ -268,7 +268,7 @@ test('no op flag should throw', async () => {
268268 `--experimental-config-file=${ fixtures . path ( 'rc/no-op.json' ) } ` ,
269269 '-p' , '"Hello, World!"' ,
270270 ] ) ;
271- assert . match ( result . stderr , / N o - o p f l a g - - h t t p - p a r s e r i s c u r r e n t l y n o t s u p p o r t e d / ) ;
271+ assert . match ( result . stderr , / \/ n o d e O p t i o n s a d d i t i o n a l p r o p e r t y n o t a l l o w e d : h t t p - p a r s e r / ) ;
272272 assert . match ( result . stderr , / n o - o p \. j s o n : i n v a l i d c o n t e n t / ) ;
273273 assert . strictEqual ( result . stdout , '' ) ;
274274 assert . strictEqual ( result . code , 9 ) ;
@@ -512,7 +512,7 @@ describe('namespace-scoped options', () => {
512512 `--experimental-config-file=${ fixtures . path ( 'rc/unknown-flag-namespace.json' ) } ` ,
513513 '-p' , '"Hello, World!"' ,
514514 ] ) ;
515- assert . match ( result . stderr , / U n k n o w n o r n o t a l l o w e d o p t i o n u n k n o w n - f l a g f o r n a m e s p a c e t e s t / ) ;
515+ assert . match ( result . stderr , / \/ t e s t a d d i t i o n a l p r o p e r t y n o t a l l o w e d : u n k n o w n - f l a g / ) ;
516516 assert . strictEqual ( result . stdout , '' ) ;
517517 assert . strictEqual ( result . code , 9 ) ;
518518 } ) ;
@@ -523,7 +523,7 @@ describe('namespace-scoped options', () => {
523523 `--experimental-config-file=${ fixtures . path ( 'rc/unknown-namespace.json' ) } ` ,
524524 '-p' , '"Hello, World!"' ,
525525 ] ) ;
526- assert . match ( result . stderr , / U n k n o w n n a m e s p a c e a n - i n v a l i d - n a m e s p a c e / ) ;
526+ assert . match ( result . stderr , / a d d i t i o n a l p r o p e r t y n o t a l l o w e d : a n - i n v a l i d - n a m e s p a c e / ) ;
527527 assert . match ( result . stderr , / u n k n o w n - n a m e s p a c e \. j s o n : i n v a l i d c o n t e n t / ) ;
528528 assert . strictEqual ( result . stdout , '' ) ;
529529 assert . strictEqual ( result . code , 9 ) ;
@@ -648,7 +648,7 @@ describe('namespace-scoped options', () => {
648648 `--experimental-config-file=${ fixtures . path ( 'rc/deprecated-testrunner-namespace.json' ) } ` ,
649649 '-p' , '"Hello, World!"' ,
650650 ] ) ;
651- assert . match ( result . stderr , / t h e " t e s t R u n n e r " n a m e s p a c e h a s b e e n r e m o v e d \. U s e " t e s t " i n s t e a d \. / ) ;
651+ assert . match ( result . stderr , / a d d i t i o n a l p r o p e r t y n o t a l l o w e d : t e s t R u n n e r \. d i d y o u m e a n " t e s t " \? / ) ;
652652 assert . strictEqual ( result . stdout , '' ) ;
653653 assert . strictEqual ( result . code , 9 ) ;
654654 } ) ;
0 commit comments