Skip to content

Commit

Permalink
See #58. Exclude __mocks__ directory from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Mar 27, 2018
1 parent c698f62 commit 17ed034
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,26 @@ module.exports = {
rootDir: ".",
testEnvironment: "node",
transform: {
"^.+\\.tsx?$": "ts-jest"
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "test/.+\\.(test|spec)\\.ts$",
testPathIgnorePatterns: ["<rootDir>/dist/", "<rootDir>/node_modules/"],
testPathIgnorePatterns: [
"<rootDir>/__mocks__/",
"<rootDir>/dist/",
"<rootDir>/node_modules/",
],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
collectCoverage: true,
coverageReporters: ["json", "lcov", "text", "html"],
coveragePathIgnorePatterns: [
"<rootDir>/__mocks__/",
"<rootDir>/dist/",
"<rootDir>/node_modules/",
],
globals: {
"ts-jest": {
tsConfigFile: "tsconfig.json",
enableTsDiagnostics: true
}
}
enableTsDiagnostics: true,
},
},
};

0 comments on commit 17ed034

Please sign in to comment.