chore: add test:coverage step
This commit is contained in:
parent
7d6fd658f4
commit
4e52410673
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": {
|
"scripts": {
|
||||||
"lint": "yarn workspace jan lint && yarn workspace @janhq/web lint",
|
"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": "yarn workspace jan test:e2e",
|
||||||
"test-local": "yarn lint && yarn build:test && yarn test",
|
"test-local": "yarn lint && yarn build:test && yarn test",
|
||||||
"pre-install:darwin": "find extensions -type f -path \"**/*.tgz\" -exec cp {} pre-install \\;",
|
"pre-install:darwin": "find extensions -type f -path \"**/*.tgz\" -exec cp {} pre-install \\;",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user