From df54ec31ba542f5537f92763cd75824db752e655 Mon Sep 17 00:00:00 2001 From: Julian Mesa Date: Fri, 5 Jul 2024 09:34:23 +0200 Subject: [PATCH] Fix run mocha tests --- js/scripts/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/scripts/test.js b/js/scripts/test.js index 67896ea..5ab8db7 100644 --- a/js/scripts/test.js +++ b/js/scripts/test.js @@ -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 ...