Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
test: fix collecting test coverage
Browse files Browse the repository at this point in the history
Fix broken test coverage introduced with 90561f9
  • Loading branch information
mischah committed Apr 1, 2018
1 parent 59d307d commit 32c00a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"build:dev": "npm-run-all security test handlebars clean:dev webpack:dev --silent",
"build:check": "serve dist --open",
"build:analyze": "npm run webpack:stats --silent && webpack-bundle-analyzer ./.webpack-stats.json ./dist -s parsed",
"test": "npm run eslint --silent && jest",
"test:watch": "jest --watch",
"pretest": "npm run eslint --silent",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "npm run test -- --watch",
"eslint": "eslint --ext .jsx,.js --cache build src",
"eslint:fix": "npm run eslint --silent -- --fix",
"eslint:watch": "onchange \"src/**/*.js\" \"src/**/*.jsx\" \"build/**/*.js\" -- onerror \"npm run eslint --silent\" -t \"Linting error(s)\"",
Expand Down
5 changes: 5 additions & 0 deletions src/app/.babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"presets": [["env", {"modules": false}]],
"env": {
"test": {
"presets": [["env", {"modules": "commonjs"}]]
}
},
"plugins": [
"syntax-dynamic-import",
[
Expand Down

0 comments on commit 32c00a0

Please sign in to comment.