Skip to content

Commit 540180a

Browse files
committed
test(jest.config): add option "collectCoverageFrom"
1 parent af2c41d commit 540180a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/mongodb-memory-server-core/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ module.exports = {
1414
testPathIgnorePatterns: ['/node_modules/', '/lib/'],
1515
testMatch: ['**/__tests__/**/*.test.(ts|js)'],
1616
testEnvironment: 'node',
17+
collectCoverageFrom: [
18+
'<rootDir>/src/**/*.ts', // include all files, even files that have no tests yet (or are never called)
19+
'!<rootDir>/src/util/postinstallHelper.ts', // exclude this file, because it is only made for postInstall, not tests
20+
],
1721
};

0 commit comments

Comments
 (0)