@openendurance/jest-config
Version:
OEI shared Jest configuration.
24 lines (23 loc) • 495 B
JavaScript
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
"**/src/**/*.{ts,tsx,js,jsx}",
"**/test/**/*.{ts,tsx,js,jsx}",
"!**/.wip/**",
"!**/node_modules/**"
],
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90
}
},
testMatch: ["**/test/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)", "!**/__fixtures__/**/*", "!**/.wip/**/*"],
transform: {
"^.+\\.(t|j)sx?$": "ts-jest"
},
passWithNoTests: true,
verbose: true
};