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']
};
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.
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