3 ms·
Jest supports multiple “projects” in a single invocation, and they can all use a different reporter. You can define a base config for your repo, and then inher
by cpojer 4y ago
Jest supports multiple “projects” in a single invocation, and they can all use a different reporter.
You can define a base config for your repo, and then inherit two sub-configs from it each with different runners and mutually exclusive selection for tests (by suffix, folder, or any convention that works for you).
See https://jestjs.io/docs/configuration https://jestjs.io/docs/configuration
- wrikl 4y agoThank you! We actually do use the "projects" feature, but we've found a fair number of options don't work when defined at the project level (a good example is `coverageThreshold` - we weren't able to make per-project thresholds work, at least in jest 26). Glad that this one has the ability to be configured more granually - that'll come in handy for migrating gradually.