From 73b57499eb7704c1b869e63816a2c6c7568747f1 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Fri, 5 Aug 2016 20:56:47 -0400 Subject: [PATCH] Update test script to be np-friendly --- karma.conf.js | 2 -- package.json | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 85a9cd7..4d4405b 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -50,7 +50,5 @@ module.exports = config => { }, browsers: env.BROWSER ? env.BROWSER.split(',') : ['Chrome', 'Firefox'], - - singleRun: env.CONTINUOUS_INTEGRATION === 'true', }); }; diff --git a/package.json b/package.json index cdfd66c..1ec9d79 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,9 @@ "build-es": "rimraf es && cross-env BABEL_ENV=es babel src -d es", "lint": "eslint src test tools *.js", "prepublish": "npm run build", + "tdd": "cross-env NODE_ENV=test karma start", "test": "npm run lint && npm run testonly", - "testonly": "cross-env NODE_ENV=test karma start" + "testonly": "npm run tdd -- --single-run" }, "repository": { "type": "git",