Speeding up Jest Typescript tests

In you tsconfig.json, make sure you ignore test files, like:

{
  // ... rest of your tsconfig.json...
  "exclude": [
    "node_modules",
    "**/*.test.tsx?"
  ]
}

This will often drastically speed up your test runs.

← Read all articles