From c0b66feff55d31bb5d7c85fbb9f612c90f595764 Mon Sep 17 00:00:00 2001 From: Arthur Araujo Date: Mon, 5 Feb 2024 21:26:56 -0300 Subject: [PATCH] Adding a config file --- package.json | 2 +- tests/mocha.config.cjs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/mocha.config.cjs diff --git a/package.json b/package.json index 538b1d2c..e5985275 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "start": "electron .", "test": "npm-run-all test:*", "test:jest": "jest --runInBand --verbose=false --detectOpenHandles --colors --transformIgnorePatterns 'node_modules/(?!astronomia)/' -- ", - "test:mocha": "c8 -o ./coverage_mocha mocha tests/*", + "test:mocha": "c8 -o ./coverage_mocha \"mocha --config tests/mocha.config.cjs tests/*\"", "test:electron-mocha-main": "c8 electron-mocha --config __tests__/electron-mocha-main.config.cjs", "setup:win": "node scripts/create_windows_installer.js" }, diff --git a/tests/mocha.config.cjs b/tests/mocha.config.cjs new file mode 100644 index 00000000..654ffa89 --- /dev/null +++ b/tests/mocha.config.cjs @@ -0,0 +1,8 @@ +module.exports = { + checkLeaks: true, + color: true, + parallel: true, + require: [ + '@babel/register' + ] +};