Jest 29 moduleNameMapper CSS mock skipped when CI=true is set
Configuration transition to Jest 29 After upgrading a project from Jest 28 to Jest 29, imports of CSS modules in test files are handled through an explicit moduleNameMapper entry that points to a mock file, e.g. '\.css$': '<rootDir>/__mocks__/styleMock.js' . This matches the documented recommendation for static assets. Observed inconsistency The same j