Skip to content

Commit

Permalink
Merge pull request janhq#3551 from janhq/chore/add-code-coverage-step
Browse files Browse the repository at this point in the history
chore: add test:coverage step
  • Loading branch information
louis-jan authored Sep 4, 2024
2 parents 7d6fd65 + 4e52410 commit d4c014d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
projects: ['<rootDir>/core', '<rootDir>/web'],
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 \\;",
Expand Down

0 comments on commit d4c014d

Please sign in to comment.