Test CommonJS modules separately

Not sure how to test them as part of Grunt `unit-tests` task as `test/index.html` doesn’t
allow for inclusion of CommonJS modules that use `require`. The tests are silently
skipped.
This commit is contained in:
Daniel Gasienica
2018-02-13 08:26:47 -05:00
parent 213400e4b2
commit 8b4c69b200

View File

@@ -12,7 +12,7 @@
"main": "main.js",
"scripts": {
"postinstall": "electron-builder install-app-deps && rimraf node_modules/dtrace-provider",
"test": "npm run eslint && npm run test-server && grunt test",
"test": "npm run eslint && npm run test-server && grunt test && mocha --recursive test/modules",
"lint": "grunt jshint",
"start": "electron .",
"asarl": "asar l release/mac/Signal.app/Contents/Resources/app.asar",