Courses / Monorepo Tooling
16. Monorepo migration with TypeScript project references and Jest
Using TypeScript project references and Jest configurations to migrate in a monorepo.
JavaScript
Monorepo migration with TypeScript project references and Jest
A way to split a large TypeScript monorepo into referenced projects so builds, type-checks, and Jest tests run fast and in the right order.
"I want to migrate a big repo incrementally without breaking everything or rechecking the whole codebase every time."
TypeScript project references let you declare dependent tsconfig projects so tsc builds and type-checks incrementally; pairing them with per-project Jest configs and moduleNameMapper lets you run tests against either built outputs or source while preserving correct imports.
"I want to migrate a big repo incrementally without breaking everything or rechecking the whole codebase every time."
TypeScript project references let you declare dependent tsconfig projects so tsc builds and type-checks incrementally; pairing them with per-project Jest configs and moduleNameMapper lets you run tests against either built outputs or source while preserving correct imports.