Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
[mocha] allow a few globals to get tests passing, see elastic#27640
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Dec 20, 2018
1 parent e497403 commit 5853717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dev/mocha/run_mocha_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export function runMochaCli() {

// check that we aren't leaking any globals
process.argv.push('--check-leaks');
// prevent globals injected from canvas plugins from triggering leak check
process.argv.push('--globals', 'core,regeneratorRuntime,_');

// ensure that mocha requires the setup_node_env script
process.argv.push('--require', require.resolve('../../setup_node_env'));
Expand Down

0 comments on commit 5853717

Please sign in to comment.