Merge pull request #10446 from backstage/rugvip/clidocs

docs/local-dev: add note about jest config selecting the env
This commit is contained in:
Patrik Oldsberg
2022-03-25 13:41:35 +01:00
committed by GitHub
+3 -1
View File
@@ -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