Skip to content

Commit

Permalink
chore: add test coverage on workflow (coinbase#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia authored Mar 13, 2024
1 parent 0a5cb19 commit 911db76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
run: npm install && npm install --prefix ./framegear
- name: Kit Test Check
# When fails, please check your tests
run: npm run test
run: npm run test:coverage
10 changes: 9 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
module.exports = {
coverageThreshold: {
global: {
branches: 94,
functions: 90,
lines: 95,
statements: 95,
},
},
modulePathIgnorePatterns: ['<rootDir>/framegear/'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testMatch: ['**/?(*.)+(spec|test|integ).{ts,tsx}'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
};

0 comments on commit 911db76

Please sign in to comment.