Merge pull request #3551 from janhq/chore/add-code-coverage-step

chore: add test:coverage step
This commit is contained in:
Louis 2024-09-04 21:23:35 +07:00 committed by GitHub
commit d4c014da1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

3
jest.config.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
projects: ['<rootDir>/core', '<rootDir>/web'],
}

View File

@ -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 \\;",