Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/app/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@ module.exports = {
'^ky$': '<rootDir>/src/__mocks__/ky-universal.ts',
},
setupFilesAfterEnv: ['<rootDir>/src/setupTests.tsx'],
// Coverage floor pinned just below measured reality so coverage can only
// ratchet up. Decay below these numbers fails the build. Raise them
// deliberately as coverage improves; never lower them silently.
coverageThreshold: {
global: {
statements: 53,
branches: 37,
functions: 38,
lines: 54,
},
},
};
11 changes: 11 additions & 0 deletions packages/common-utils/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@ module.exports = {
moduleNameMapper: {
'@/(.*)$': '<rootDir>/$1',
},
// Coverage floor pinned just below measured reality so coverage can only
// ratchet up. Decay below these numbers fails the build. Raise them
// deliberately as coverage improves; never lower them silently.
coverageThreshold: {
global: {
statements: 86,
branches: 78,
functions: 85,
lines: 86,
},
},
};
11 changes: 11 additions & 0 deletions packages/hdx-eval/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,15 @@ module.exports = {
moduleNameMapper: {
'@/(.*)$': '<rootDir>/$1',
},
// Coverage floor pinned just below measured reality so coverage can only
// ratchet up. Decay below these numbers fails the build. Raise them
// deliberately as coverage improves; never lower them silently.
coverageThreshold: {
global: {
statements: 70,
branches: 55,
functions: 72,
lines: 71,
},
},
};
2 changes: 1 addition & 1 deletion packages/hdx-eval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lint": "npx eslint --quiet . --ext .ts",
"lint:fix": "npx eslint . --ext .ts --fix",
"ci:lint": "yarn lint && yarn tsc --noEmit",
"ci:unit": "jest --ci --forceExit",
"ci:unit": "jest --ci --coverage --forceExit",
"dev:unit": "jest --watch",
"viewer": "node scripts/viewer/server.js"
}
Expand Down
Loading