@@ -67,17 +67,22 @@ for (const isolation of ['none', 'process']) {
67
67
`--experimental-${ type } -types` , `--experimental-test-isolation=${ isolation } ` ] ;
68
68
const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'matching-patterns' ) } ) ;
69
69
70
- assert . strictEqual ( child . status , 0 ) ;
71
- assert . strictEqual ( child . signal , null ) ;
72
- assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
73
- const stdout = child . stdout . toString ( ) ;
74
-
75
- assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
76
- assert . match ( stdout , / o k 2 - t h i s s h o u l d p a s s / ) ;
77
- assert . match ( stdout , / o k 3 - t h i s s h o u l d p a s s / ) ;
78
- assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
79
- assert . match ( stdout , / o k 5 - t h i s s h o u l d p a s s / ) ;
80
- assert . match ( stdout , / o k 6 - t h i s s h o u l d p a s s / ) ;
70
+ if ( ! process . features . typescript ) {
71
+ // e.g. Compiled with `--without-amaro`.
72
+ assert . strictEqual ( child . status , 1 ) ;
73
+ } else {
74
+ assert . strictEqual ( child . status , 0 ) ;
75
+ assert . strictEqual ( child . signal , null ) ;
76
+ assert . strictEqual ( child . stderr . toString ( ) , '' ) ;
77
+ const stdout = child . stdout . toString ( ) ;
78
+
79
+ assert . match ( stdout , / o k 1 - t h i s s h o u l d p a s s / ) ;
80
+ assert . match ( stdout , / o k 2 - t h i s s h o u l d p a s s / ) ;
81
+ assert . match ( stdout , / o k 3 - t h i s s h o u l d p a s s / ) ;
82
+ assert . match ( stdout , / o k 4 - t h i s s h o u l d p a s s / ) ;
83
+ assert . match ( stdout , / o k 5 - t h i s s h o u l d p a s s / ) ;
84
+ assert . match ( stdout , / o k 6 - t h i s s h o u l d p a s s / ) ;
85
+ }
81
86
}
82
87
83
88
{
0 commit comments