Skip to content

Commit 58b2350

Browse files
committed
Disable deprecation warnings in reporter tests
1 parent d399797 commit 58b2350

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/helper/report.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ const createApi = options => {
1616
child_process: { // eslint-disable-line camelcase
1717
...childProcess,
1818
fork(filename, argv, options) {
19-
return childProcess.fork(path.join(__dirname, 'report-worker.js'), argv, options);
19+
return childProcess.fork(path.join(__dirname, 'report-worker.js'), argv, {
20+
...options,
21+
env: {
22+
...options.env,
23+
NODE_NO_WARNINGS: '1'
24+
}
25+
});
2026
}
2127
}
2228
})

0 commit comments

Comments
 (0)