summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.babelrc2
-rw-r--r--package.json4
2 files changed, 3 insertions, 3 deletions
diff --git a/.babelrc b/.babelrc
index 40989d2fc5a..50d85f58d69 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,7 +1,7 @@
{
"presets": [["latest", { "es2015": { "modules": false } }], "stage-2"],
"env": {
- "development": {
+ "karma": {
"plugins": ["rewire"]
},
"coverage": {
diff --git a/package.json b/package.json
index 9b5aa29ab53..7808728465f 100644
--- a/package.json
+++ b/package.json
@@ -5,9 +5,9 @@
"eslint": "eslint --max-warnings 0 --ext .js,.vue .",
"eslint-fix": "eslint --max-warnings 0 --ext .js,.vue --fix .",
"eslint-report": "eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html .",
- "karma": "karma start --single-run true config/karma.config.js",
+ "karma": "BABEL_ENV=karma karma start --single-run true config/karma.config.js",
"karma-coverage": "BABEL_ENV=coverage karma start --single-run true config/karma.config.js",
- "karma-start": "karma start config/karma.config.js",
+ "karma-start": "BABEL_ENV=karma karma start config/karma.config.js",
"prettier-staged": "node ./scripts/frontend/prettier.js",
"prettier-staged-save": "node ./scripts/frontend/prettier.js save",
"prettier-all": "node ./scripts/frontend/prettier.js check-all",