mirror of
https://github.com/bitwarden/browser
synced 2025-01-05 15:11:09 +01:00
20 lines
537 B
JavaScript
20 lines
537 B
JavaScript
|
/* eslint-env node */
|
||
|
module.exports = {
|
||
|
testMatch: ["**/+(*.)+(spec).+(ts)"],
|
||
|
collectCoverage: true,
|
||
|
coverageReporters: ["html", "lcov"],
|
||
|
coverageDirectory: "coverage",
|
||
|
|
||
|
// Workaround for a memory leak that crashes tests in CI:
|
||
|
// https://github.com/facebook/jest/issues/9430#issuecomment-1149882002
|
||
|
// Also anecdotally improves performance when run locally
|
||
|
maxWorkers: 3,
|
||
|
|
||
|
// Jest does not use tsconfig.spec.json by default
|
||
|
globals: {
|
||
|
"ts-jest": {
|
||
|
tsconfig: "<rootDir>/tsconfig.spec.json",
|
||
|
},
|
||
|
},
|
||
|
};
|