Skip to content

Commit

Permalink
fix: include .cjs, .mjs, .cts and .mts as coverage targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Dec 28, 2021
1 parent 45b5015 commit 2b4bd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
resolver: '<rootDir>/test/test-util/jest/resolver.cjs',
// do not transform `import` statements (for ESM)
transform: {},
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,tsx}', '!**/*.d.ts'],
collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}', '!**/*.d.ts'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.test.json',
Expand Down

0 comments on commit 2b4bd5e

Please sign in to comment.