Skip to content

Commit

Permalink
enable test coverage on all platforms but with lowered thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 1, 2024
1 parent 9a798da commit 47572f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ const config = {
},
extensionsToTreatAsEsm: [".ts"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
collectCoverage: platform === "linux" && !env.TEST_MEMORY,
collectCoverage: !env.TEST_MEMORY,
coverageDirectory: "coverage",
coverageReporters: ["text", "lcov"],
coveragePathIgnorePatterns: ["/__tests__/", "/test-utils/"],
coverageThreshold: {
// These are low because we're doing integration tests and there are quite
// different codepaths for macOS, Windows, and Linux
global: {
branches: 80,
branches: 70,
functions: 80,
lines: 80,
statements: 80,
lines: 75,
statements: 75,
},
},
verbose: true,
Expand Down

0 comments on commit 47572f1

Please sign in to comment.