You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use this with jest-junit, I don't seem to have any junit files generated. No errors are thrown.
As a workaround, I'm running each project separately in CI with --config settings, eg;
// package.json:
"jest": {
"projects": ["foo.jest.config.js", "bar.jest.config.js"]
}
// ci script:
JEST_JUNIT_OUTPUT=foo-tests.xml yarn jest --config foo.jest.config.js
JEST_JUNIT_OUTPUT=bar-tests.xml yarn jest --config bar.jest.config.js
// in development
yarn jest // runs both foo and bar
I haven't done any digging into why this may be happening.
Do you think this can be fixed?
The text was updated successfully, but these errors were encountered:
jest-junit itself does not rely on globalSetup or globalTeardown. But reporters are configured globally, not on a per-project basis. So I would suggest having a top level jest config that specifies the projects and the reporter(s) you want to use. Or specify the reporters via cli args.
At Spotify jest-junit is used widely with multiple project jest configurations.
Hi,
Jest now has the ability to specify multiple projects: https://jestjs.io/docs/en/configuration.html#projects-array-string-projectconfig
When I try to use this with jest-junit, I don't seem to have any junit files generated. No errors are thrown.
As a workaround, I'm running each project separately in CI with
--config
settings, eg;I haven't done any digging into why this may be happening.
Do you think this can be fixed?
The text was updated successfully, but these errors were encountered: