Skip to content

Commit adcc145

Browse files
committed
test: fix wrong test assertion
1 parent a2801ff commit adcc145

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ test.group('Child process', () => {
7171
args: [
7272
'--loader=ts-node/esm',
7373
'--enable-source-maps',
74-
'--disable-warning=ExperimentalWarning',
74+
process.allowedNodeEnvironmentFlags.has('--disable-warning')
75+
? '--disable-warning=ExperimentalWarning'
76+
: '--no-warnings',
7577
'--throw-deprecation',
7678
],
7779
})

0 commit comments

Comments
 (0)