Skip to content

Commit

Permalink
Disable deprecation warnings in reporter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Jul 7, 2019
1 parent d399797 commit 58b2350
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/helper/report.js
Expand Up @@ -16,7 +16,13 @@ const createApi = options => {
child_process: { // eslint-disable-line camelcase
...childProcess,
fork(filename, argv, options) {
return childProcess.fork(path.join(__dirname, 'report-worker.js'), argv, options);
return childProcess.fork(path.join(__dirname, 'report-worker.js'), argv, {
...options,
env: {
...options.env,
NODE_NO_WARNINGS: '1'
}
});
}
}
})
Expand Down

0 comments on commit 58b2350

Please sign in to comment.