/pnpm-monorepo

POC to test pnpm TS monorepo with navigation to the src file instead of dist

Primary LanguageTypeScript

jest-monorepo

Usage

First install the dependencies with PNPM:

pnpm install

Then run the tests:

pnpm test

Learning

  • Jest projects works pretty well for a monorepo setup.

  • The command can be executed at the root and the root Jest's config file is used.

  • For every monorepo project, the root config is merged with the project's own Jest config. With this setup, configuration fields like transform can be kept code per project instead of configuring a generic global transform config in the root file.

  • Every project tests are run in the same process and the results are outputed as a whole in a single report.

Jest report

Setup