TIL: Speed up jest tests

July 05, 2021

To speed up Jest tests paired with ts-jest, add the following to jest.config.js:

  globals: {
    "ts-jest": {
      isolatedModules: true,
    },
  },
  maxWorkers: 1,