Skip to content

Commit ede4680

Browse files
committed
Added cross-env back and added the npm script to run tests through Karma
1 parent 76e21db commit ede4680

File tree

2 files changed

+133
-2
lines changed

2 files changed

+133
-2
lines changed

package-lock.json

Lines changed: 130 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"scripts": {
1414
"serve": "vue-cli-service serve",
1515
"build": "vue-cli-service build",
16-
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
17-
"test": "npm run unit",
16+
"test": "vue-cli-service test:unit",
17+
"test:karma": "cross-env NODE_ENV=test karma start tests/unit/karma.conf.js --single-run",
1818
"lint": "vue-cli-service lint --no-fix *.js app src test",
1919
"lint:fix": "vue-cli-service lint *.js app src test",
2020
"deploy": "gh-pages -d dist",
@@ -42,6 +42,7 @@
4242
"babel-eslint": "^10.0.1",
4343
"chai": "^4.2.0",
4444
"copy-dir": "^1.2.0",
45+
"cross-env": "^7.0.3",
4546
"eslint": "^5.16.0",
4647
"eslint-formatter-friendly": "^7.0.0",
4748
"eslint-plugin-vue": "^5.2.3",

0 commit comments

Comments
 (0)