Skip to content

Commit

Permalink
env(unitest): test coverage 파일 설정 및 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Dec 6, 2024
1 parent acf3f63 commit 8472d18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unit.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
corepack prepare [email protected] --activate
- name: Install dependencies
run: yarn install --immutable --inline-builds
run: yarn install --immutable

- name: Run tests with coverage
run: yarn test --coverage
Expand Down
11 changes: 11 additions & 0 deletions packages/ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,16 @@ export default {
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest'],
'\\.css$': 'jest-transform-css'
},
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['json-summary', 'text', 'lcov'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80
}
}
}

0 comments on commit 8472d18

Please sign in to comment.