TIL: Speed up jest tests
A modest speed-up for ts-jest
![Profile picture](/me.png)
To speed up Jest tests paired with ts-jest
, add the following to jest.config.js
:
globals: {
"ts-jest": {
isolatedModules: true,
},
},
maxWorkers: 1,
A modest speed-up for ts-jest
To speed up Jest tests paired with ts-jest
, add the following to jest.config.js
:
globals: {
"ts-jest": {
isolatedModules: true,
},
},
maxWorkers: 1,