Skip to content

Commit

Permalink
output code coverage (#1511)
Browse files Browse the repository at this point in the history
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
  • Loading branch information
shuding and huozhi committed Oct 3, 2021
1 parent 378bc7c commit b7e131b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ module.exports = {
tsconfig: 'test/tsconfig.json',
diagnostics: process.env.CI
}
}
},
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/test/'],
coverageProvider: 'v8',
coverageReporters: ['text']
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"format": "prettier --write ./**/*.{ts,tsx}",
"lint": "eslint . --ext .ts,.tsx --cache",
"lint:fix": "yarn lint --fix",
"test": "jest",
"test": "jest --coverage",
"register": "yarn link && cd node_modules/react && yarn link",
"dev-next": "node scripts/dev-next.js"
},
"husky": {
Expand Down

0 comments on commit b7e131b

Please sign in to comment.