Skip to content

Commit

Permalink
Fix run mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmesa-gitkraken committed Jul 5, 2024
1 parent e5d8da8 commit df54ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const cp = require('child_process');
if (process.platform !== 'win32' && process.platform !== 'darwin') {
// When ran as a npm script we can invoke npm bins such as node-gyp and mocha directly
exec('node-gyp rebuild', { env: { ...process.env, NSFW_TEST_SLOW: 1 } });
exec('mocha --exit --expose-gc js/spec/index-slow-spec.js');
exec('mocha --exit --v8-expose-gc js/spec/index-slow-spec.js');
exec('node-gyp rebuild');
}
exec('mocha --exit --expose-gc js/spec/index-spec.js');
exec('mocha --exit --v8-expose-gc js/spec/index-spec.js');

/**
* @param {string} commandline ...
Expand Down

0 comments on commit df54ec3

Please sign in to comment.