I'm running jest in a multi-project mode with several projects in subdirectories. The global configuration file in the root directory is as follows
module.exports = {
rootDir: 'src',
coverageDirectory: '<rootDir>/../coverage',
collectCoverageFrom: [
'**/*.js',
'!**/index.js',
'!**/jest.config.js',
],
projects: [
'<rootDir>/server',
'<rootDir>/client',
'<rootDir>/common',
],
transformIgnorePatterns: [
'/node_modules/(?!lodash-es)',
],
};
Project configurations are relatively simple and only differ by testEnvironment (node and jsdom) as for now. I expect jest to use transformIgnorePatterns options for all projects when I run it from the root directory with npm test. But it does work only if I move the mentioned option to the jest configuration in the subdirectory, such as src/client/jest.config.js
Is this an intended behavior or a bug?
I'm running jest in a multi-project mode with several projects in subdirectories. The global configuration file in the root directory is as follows
Project configurations are relatively simple and only differ by
testEnvironment(node and jsdom) as for now. I expect jest to usetransformIgnorePatternsoptions for all projects when I run it from the root directory withnpm test. But it does work only if I move the mentioned option to the jest configuration in the subdirectory, such assrc/client/jest.config.jsIs this an intended behavior or a bug?