Skip to content

Commit

Permalink
Merge pull request backstage#10446 from backstage/rugvip/clidocs
Browse files Browse the repository at this point in the history
docs/local-dev: add note about jest config selecting the env
  • Loading branch information
Rugvip authored Mar 25, 2022
2 parents 2aa6f05 + 13fcb3e commit 43d95ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/local-dev/cli-build-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,9 @@ The built-in configuration brings a couple of benefits and features. The most
important one being a baseline transformer and module configuration that enables
support for the listed [loaders](#loaders) within tests. It will also
automatically detect and use `src/setupTests.ts` if it exists, and provides a
coverage configuration that works well with our selected transpilers.
coverage configuration that works well with our selected transpilers. The configuration
will also detect the appropriate Jest environment for each package role, running
`web-libraries` with the `"jsdom"` environment, `node-libraries` with `"node"`, and so on.

The configuration also takes a project-wide approach, with the expectation most
if not all packages within a monorepo will use the same base configuration. This
Expand Down

0 comments on commit 43d95ab

Please sign in to comment.