TIL: Speed up jest tests

- #today-i-learned
- #jest
To speed up Jest tests paired with ts-jest
, add the following to jest.config.js
:
globals: {
"ts-jest": {
isolatedModules: true,
},
},
maxWorkers: 1,
To speed up Jest tests paired with ts-jest
, add the following to jest.config.js
:
globals: {
"ts-jest": {
isolatedModules: true,
},
},
maxWorkers: 1,