From 7c85d17c54f681f2c2542d17709b3795f5b2790f Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 27 Jul 2018 20:30:47 -0700 Subject: [PATCH 1/2] chore: move mocha options to mocha.opts --- package.json | 4 ++-- test/mocha.opts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 test/mocha.opts diff --git a/package.json b/package.json index cd63e053..49fbbbcd 100644 --- a/package.json +++ b/package.json @@ -53,14 +53,14 @@ "wanacode " ], "scripts": { - "cover": "nyc --reporter=lcov mocha --require intelli-espower-loader test/*.js && nyc report", + "cover": "nyc --reporter=lcov mocha test/*.js && nyc report", "docs": "jsdoc -c .jsdoc.js", "generate-scaffolding": "repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", "lint": "eslint src/ samples/ system-test/ test/", "prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", "system-test": "mocha system-test/*.js --timeout 600000", - "test-no-cover": "mocha test/*.js --no-timeouts", + "test-no-cover": "mocha test/*.js", "test": "npm run cover" }, "dependencies": { diff --git a/test/mocha.opts b/test/mocha.opts new file mode 100644 index 00000000..75e8d78b --- /dev/null +++ b/test/mocha.opts @@ -0,0 +1,2 @@ +--require intelli-espower-loader +--timeout 10000 \ No newline at end of file From 02e46e93fbded0e97b7bfceebc9037ed80a84c05 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sat, 28 Jul 2018 12:52:25 -0700 Subject: [PATCH 2/2] fix --- test/mocha.opts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocha.opts b/test/mocha.opts index 75e8d78b..3e740ac6 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,2 +1,2 @@ --require intelli-espower-loader ---timeout 10000 \ No newline at end of file +--timeout 10000