Merge pull request #3551 from janhq/chore/add-code-coverage-step
chore: add test:coverage step
This commit is contained in:
commit
d4c014da1d
3
jest.config.js
Normal file
3
jest.config.js
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
projects: ['<rootDir>/core', '<rootDir>/web'],
|
||||
}
|
||||
@ -19,7 +19,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "yarn workspace jan lint && yarn workspace @janhq/web lint",
|
||||
"test:unit": "yarn workspace @janhq/core test",
|
||||
"test:unit": "jest",
|
||||
"test:coverage": "jest --coverage --collectCoverageFrom='src/**/*.{ts,tsx}'",
|
||||
"test": "yarn workspace jan test:e2e",
|
||||
"test-local": "yarn lint && yarn build:test && yarn test",
|
||||
"pre-install:darwin": "find extensions -type f -path \"**/*.tgz\" -exec cp {} pre-install \\;",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user