mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Improve jest performance (#9496)
Utilizing resources based on thread availability improves performance vs fixed threading. The linked issue for CI crashes has not been closed. Once this is solves, `runInBand` may improves performance in CI.
This commit is contained in:
@@ -11,10 +11,8 @@ module.exports = {
|
||||
".*.type.spec.ts", // ignore type tests (which are checked at compile time and not run by jest)
|
||||
],
|
||||
|
||||
// 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,
|
||||
// Improves on-demand performance, for watches prefer 25%, overridable by setting --maxWorkers
|
||||
maxWorkers: "50%",
|
||||
|
||||
transform: {
|
||||
"^.+\\.(ts|js|mjs|svg)$": [
|
||||
|
||||
Reference in New Issue
Block a user