Skip to content

Commit

Permalink
更新單元測試覆蓋率閾值
Browse files Browse the repository at this point in the history
  • Loading branch information
igncp committed Jan 13, 2024
1 parent cda132f commit c43d57e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Applications I use to practice language learning. For more info:

## Hosted Pages

- [chrome-extension-storybook](https://igncp.github.io/writing-trainer/chrome-extension-storybook)
- [chrome-extension-types-coverage](https://igncp.github.io/writing-trainer/chrome-extension-types-coverage)
- [core-tests-coverage](https://igncp.github.io/writing-trainer/core-tests-coverage)
- [core-types-coverage](https://igncp.github.io/writing-trainer/core-types-coverage)
Expand Down
1 change: 1 addition & 0 deletions helpers/ci/gh_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ cp -r packages/react-ui/coverage-ts gh_pages/react-ui-types-coverage
cp -r packages/web-app/out gh_pages/web-app

cp -r packages/chrome-extension/coverage-ts gh_pages/chrome-extension-types-coverage
cp -r packages/chrome-extension/storybook-static gh_pages/chrome-extension-storybook
4 changes: 2 additions & 2 deletions packages/chrome-extension/helpers/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ npm test -- --no-coverage

npm run type-coverage

# npm run build-storybook
npm run build-storybook

# npm run build
npm run build
8 changes: 4 additions & 4 deletions packages/react-ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module.exports = Object.assign(globalConfig, {
],
coverageThreshold: {
global: {
branches: 30,
functions: 30,
lines: 30,
statements: 30,
branches: 25,
functions: 25,
lines: 25,
statements: 25,
},
},
globals: {
Expand Down

0 comments on commit c43d57e

Please sign in to comment.