diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-04-19 16:14:24 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-04-23 00:54:21 -0500 |
commit | 6180102fb0aede36d139c52c84691757ceec85f3 (patch) | |
tree | 879235234361ea5903df4938f7176f745d06eac8 /package.json | |
parent | 8fa0aeb880ab00174f0d7edf8945bb55066925f8 (diff) | |
download | gitlab-ce-6180102fb0aede36d139c52c84691757ceec85f3.tar.gz |
only apply rewire plugin when running karma tests
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 4 |
1 files changed, 2 insertions, 2 deletions
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", |