From 0e7e6526eeb5bd67d270232983f4baff98a800b8 Mon Sep 17 00:00:00 2001 From: Dounia Boujnane Date: Fri, 2 Feb 2018 16:14:13 -0500 Subject: [PATCH 1/3] :tractor: chore(npm): karma task now executes tests instead of coverage --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 53f86b93..1f775d34 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "build:webpack": "webpack --progress --colors --config build/webpack.dist.babel.js", "build:watch": "webpack --progress --colors --config build/webpack.dist.babel.js --watch", "test": "npm run karma", - "karma": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters nyan,coverage --single-run", + "coverage": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters nyan,coverage --single-run", + "karma": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters spec --single-run", "karma:watch": "cross-env NODE_ENV=test BABEL_ENV=test node -r babel-register node_modules/karma/bin/karma start build/karma.conf.js --watch" }, "dependencies": { From 7db7ac7c42084c619047184d3651464078bf4cc4 Mon Sep 17 00:00:00 2001 From: Kevin Manson Date: Tue, 6 Feb 2018 13:06:31 -0500 Subject: [PATCH 2/3] chore(): rename NPM tasks --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1f775d34..7b98299a 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ "build:webpack": "webpack --progress --colors --config build/webpack.dist.babel.js", "build:watch": "webpack --progress --colors --config build/webpack.dist.babel.js --watch", "test": "npm run karma", - "coverage": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters nyan,coverage --single-run", - "karma": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters spec --single-run", - "karma:watch": "cross-env NODE_ENV=test BABEL_ENV=test node -r babel-register node_modules/karma/bin/karma start build/karma.conf.js --watch" + "unit": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters nyan,coverage --single-run", + "unit:ci": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters spec,coverage --single-run", + "unit:watch": "cross-env NODE_ENV=test BABEL_ENV=test node -r babel-register node_modules/karma/bin/karma start build/karma.conf.js --watch" }, "dependencies": { "popper.js": "^1.12.9" From 5f9fd7bc50c955712fdf05f0cb3468c94dc6aee7 Mon Sep 17 00:00:00 2001 From: Jean-Daniel Pearson <1476965+JDownloader@users.noreply.github.com> Date: Tue, 6 Feb 2018 13:54:42 -0500 Subject: [PATCH 3/3] :tractor: chore(npm): change default test task --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b98299a..710794eb 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "build:clean": "rimraf dist", "build:webpack": "webpack --progress --colors --config build/webpack.dist.babel.js", "build:watch": "webpack --progress --colors --config build/webpack.dist.babel.js --watch", - "test": "npm run karma", + "test": "npm run unit:ci", "unit": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters nyan,coverage --single-run", "unit:ci": "cross-env NODE_ENV=test babel-node node_modules/karma/bin/karma start build/karma.conf.js --reporters spec,coverage --single-run", "unit:watch": "cross-env NODE_ENV=test BABEL_ENV=test node -r babel-register node_modules/karma/bin/karma start build/karma.conf.js --watch"