-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stryker with multiple Jest projects #2574
Comments
Thanks for opening this issue. I personally don't have a lot of experience with jest. Probably the fastest way to debug this is to create a small reproduction project and add it here. You can either push it to git and give the link or attach a |
Thank you to your reply @nicojs. |
I just migrated a project of mine over to using Jest projects (for the same reason, to split jsdom and node environments) and that caused Strkyer to fail with the same error:
Digging a little, I figured out that the problem is to do with Jest's handling of the From Stryker's perspective it seems that, to support Jest configurations containing projects, the {
"projects": ["<rootDir>", "<rootDir>/examples/*"]
} the {
"projects": [
{
"displayName": "test"
},
{
"displayName": "lint",
"runner": "jest-runner-eslint",
"testMatch": ["<rootDir>/**/*.js"]
}
]
} and I don't know what you'd be able to pass if a project's an object without a
|
Pending resolution of stryker-mutator/stryker-js#2574.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Reopening because of #2780 (comment) |
Note: I had to remove the 7.0 milestone, because we are blocked by jestjs/jest#14062 |
Question
I created an application with multiple Jest projects because I need to tests node and jsdom environments.
When I launch
stryker run
, I encountered this exception:I saw that problem is due by line
/Users/user/Examples/next-test/node_modules/jest-config/build/index.js:406:32
const parsedConfig = await readConfig(argv, projects[0]);
readConfig
function expects a string as the second argument but, in my case,projects
is an array of objects instead of an array of strings.Anyone have an idea to fix or bypass this exception?
Environment
stryker.config.js
jest.config.js
The text was updated successfully, but these errors were encountered: