From 9ab34a7d7b1eee0d32d509aa70b2c6e07ab93b8d Mon Sep 17 00:00:00 2001 From: KtorZ Date: Thu, 6 Jul 2017 15:17:49 +0200 Subject: [PATCH] move --single-run option in the karma.conf.js --- karma.conf.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 6ec00cb..1c5f2a4 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,6 +1,7 @@ module.exports = config => { config.set({ autoWatch: true, + singleRun: true, browsers: ["Chrome"], files: [ "dist/karma/index.js", @@ -15,7 +16,6 @@ module.exports = config => { "karma-mocha", ], reporters: ["spec"], - singleRun: false, client: { mocha: { timeout: 10000 diff --git a/package.json b/package.json index a4469df..f86fe2b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "prepare:release": "mkdir -p releases/github && cp -r README.md LICENSE src bower.json releases/github", "test:build": "mkdir -p dist/karma && pulp browserify -j 4 --main \"Test.Main\" -I test --to dist/karma/index.js", - "test:run": "karma start --single-run karma.conf.js", + "test:run": "karma start karma.conf.js", "test:run:browserstack": "karma start karma.browserstack.conf.js", "test:browserstack": "npm run test:build && npm run test:run:browserstack", "test": "npm run test:build && npm run test:run",