stryker-mutator / stryker-js

Mutation testing for JavaScript and friends
https://stryker-mutator.io
Apache License 2.0
2.56k stars 241 forks source link

Stryker don't find my jest config file in each package of monorepo #4017

Open guilhermerodpais opened 1 year ago

guilhermerodpais commented 1 year ago

Question

Hey! I'm trying to run stryker in a monorepo with react, and in each package i have a jest.config.file. When i run stryker I get jest errors. Does anyone already implement stryker in a monorepo that can help me or give me any ideas?

Example of my main jest config: module.exports = { setupFiles: ['dotenv/config'], projects: ['/packages/app/', '/packages/shared/'], resolver: 'jest-directory-named-resolver', collectCoverageFrom: [ '!/public/', '!/*.config.{js, jsx, ts, tsx}', '!/node_modules/', '!/out/', '!/.next/', '!/coverage/', '!/mocks/', '!/tests/', '!/snapshots/', '!*/.json', '!/*.md', '!*/.d.{js, ts}', '!*/.eslintrc.{js, ts}' ], testResultsProcessor: 'jest-sonar-reporter', coverageReporters: ['text', 'lcov', 'json', 'text', 'clover', 'cobertura'] };

Stryker environment

+-- @stryker-mutator/core@6.3.1
+-- @stryker-mutator/jest-runner@6.3.1
+-- jest@27.3.1
stale[bot] commented 4 months ago

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.