From b94d308ef68de88185dba3e97adb99b658cb12d8 Mon Sep 17 00:00:00 2001 From: Volodymyr Shatskyi Date: Sat, 27 May 2017 11:46:22 +0300 Subject: [PATCH] Use electron-mocha for unit tests. --- package.json | 2 +- tslint.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 574576388..9d28e8a63 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "prestart": "npm install && npm run compile", "start": "bash housekeeping/start.sh", "test": "npm run lint && npm run unit-tests && npm run ui-tests && npm run integration-tests && build --publish never", - "unit-tests": "ELECTRON_RUN_AS_NODE=1 electron $(which mocha) --require ts-node/register $(find test -name '*_spec.ts')", + "unit-tests": "electron-mocha --require ts-node/register $(find test -name '*_spec.ts')", "ui-tests": "electron-mocha --require ts-node/register $(find test -name '*_spec.tsx')", "integration-tests": "npm run compile && mocha", "update-dependencies": "ncu -u", diff --git a/tslint.json b/tslint.json index 230237edf..303a6c4e8 100644 --- a/tslint.json +++ b/tslint.json @@ -63,7 +63,7 @@ "no-switch-case-fall-through": true, "no-trailing-whitespace": true, "no-unused-expression": true, - "no-use-before-declare": true, + "no-use-before-declare": false, "no-var-keyword": true, "no-var-requires": false, "object-literal-sort-keys": false,