chore: add test:coverage step

This commit is contained in:
Louis 2024-09-04 20:43:35 +07:00
parent 7d6fd658f4
commit 4e52410673
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2
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 \\;",