Skip to content

Commit

Permalink
chore(ci): coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-in-a-box committed Oct 1, 2024
1 parent 77dea1b commit 0af768a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run tests
run: yarn test --coverage
- name: Read coverage data
Expand Down Expand Up @@ -59,7 +61,7 @@ jobs:
issue_number: context.issue.number,
});
const existingComment = comments.find(comment => comment.user.login === 'github-actions[bot]' && comment.body.includes('### Jest Coverage Report 📊'));
const existingComment = comments.find(comment => comment.user.login === 'github-actions[bot]' && comment.body.includes('### Jest Coverage Report'));
if (existingComment) {
await github.rest.issues.updateComment({
Expand Down
1 change: 1 addition & 0 deletions scripts/jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
collectCoverageFrom: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js', '!**/node_modules/**', '!**/__tests__/**'],
coverageDirectory: '<rootDir>/reports',
coveragePathIgnorePatterns: ['\\.stories.*$', 'src/icon/*', 'src/icons/*', 'src/illustration'],
coverageReporters: ['clover', 'json', 'lcov', 'text', 'json-summary'],
globalSetup: '<rootDir>/scripts/jest/env-setup.js',
moduleNameMapper: {
'box-ui-elements-locale-data': '<rootDir>/i18n/en-US.js',
Expand Down

0 comments on commit 0af768a

Please sign in to comment.