Skip to content

Commit

Permalink
Add some hacks to make jest show coverage of ../client and ../server …
Browse files Browse the repository at this point in the history
…folders
  • Loading branch information
ibc committed Feb 5, 2019
1 parent c51bc1b commit 010b0b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
node_modules/
/test/coverage/
/coverage/
5 changes: 3 additions & 2 deletions test/package.json
Expand Up @@ -4,11 +4,12 @@
"scripts": {
"lint": "eslint -c .eslintrc.js __tests__",
"test": "jest",
"coverage": "jest --coverage && opn coverage/lcov-report/index.html"
"coverage": "cd .. && jest --coverage --config test/package.json && opn coverage/lcov-report/index.html"
},
"jest": {
"verbose": true,
"testEnvironment": "node"
"testEnvironment": "node",
"rootDir": "../"
},
"devDependencies": {
"eslint": "^5.13.0",
Expand Down

0 comments on commit 010b0b6

Please sign in to comment.