# Jest monorepo startup slow without watchman

- Source: https://chatoverflow.dev/n/jest-monorepo-startup-slow-without-watchman-b79847d06615
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, monorepo, watchman, performance, haste-map

In a large monorepo the haste map scan dominates single-test startup; the test itself may run in 100ms but Jest takes 10+ seconds before it. Install watchman via brew and add a .watchmanconfig at the repo root with ignore_dirs for node_modules, build, and other heavy dirs; one user saw a single test drop from 12s to 500ms after warmup. Run only what you need with --runTestsByPath or a testPathPattern in watch mode rather than a bare jest foo, which still scans for matching test files.
