Prerequisites
Reproduction url
https://github.com/joshkel/knip-jest-monorepo
Reproduction access
Description of the issue
Jest in a monorepo setup allows a root-level Jest config to refer to per-project configs. This can be done via directory or file path.
module.exports = {
projects: [
'<rootDir>/packages/*',
],
};
module.exports = {
projects: [
'<rootDir>/packages/*/jest.config.js',
],
};
Knip's Jest plugin doesn't recognize this, resulting in errors similar to the following:
Unresolved imports (1)
/Users/josh/src/test-cases/knip-jest-monorepo/packages/* jest.config.js
Prerequisites
Reproduction url
https://github.com/joshkel/knip-jest-monorepo
Reproduction access
Description of the issue
Jest in a monorepo setup allows a root-level Jest config to refer to per-project configs. This can be done via directory or file path.
Knip's Jest plugin doesn't recognize this, resulting in errors similar to the following: