Skip to content

Commit

Permalink
test: Excluded dist directory from the test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mnasyrov committed Jul 25, 2021
1 parent c54c887 commit fb37ed7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
node-version: '15'
- name: Install dependencies
run: npm ci
- name: Clean
run: npm run clean
- name: Build
run: npm run build
- name: Lint
Expand Down
8 changes: 2 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import fastGlob from 'fast-glob';

const typescript = {
displayName: 'Typescript',
export default {
roots: fastGlob.sync(['packages/*/src'], { onlyDirectories: true }),
collectCoverageFrom: ['packages/*/src/**/{!(index|testUtils),}.ts'],
preset: 'ts-jest',
globals: {
'ts-jest': {
Expand All @@ -17,7 +17,3 @@ const typescript = {
},
},
};

export default {
projects: [typescript],
};

0 comments on commit fb37ed7

Please sign in to comment.