mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[EC-423] Fix unit tests (#3265)
* Create base jest.config file * Fix various tests that were broken * Add maxWorkers to jest config * Undo change to testEnvironment * Enable tsconfig.spec.json
This commit is contained in:
@@ -12,6 +12,7 @@ module.exports = {
|
||||
projects: [
|
||||
"<rootDir>/apps/browser/jest.config.js",
|
||||
"<rootDir>/apps/cli/jest.config.js",
|
||||
"<rootDir>/apps/web/jest.config.js",
|
||||
|
||||
"<rootDir>/libs/angular/jest.config.js",
|
||||
"<rootDir>/libs/common/jest.config.js",
|
||||
@@ -19,4 +20,9 @@ module.exports = {
|
||||
"<rootDir>/libs/electron/jest.config.js",
|
||||
"<rootDir>/libs/node/jest.config.js",
|
||||
],
|
||||
|
||||
// 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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user