Skip to content

Commit bf282da

Browse files
arbrandesclaude
andcommitted
fix: disable jest-console-group-reporter for Jest 29 compat
The reverted commits had disabled this reporter due to a crash in SummaryReporter.onRunComplete caused by jest-console-group-reporter@1.1.1 pulling in @jest/reporters@^30 (which expects testPathPatterns) while the project runs Jest 29 (which uses testPathPattern). Restore that fix. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d860835 commit bf282da

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

jest.config.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,16 @@ const config = createConfig('jest', {
2424

2525
// delete config.testURL;
2626

27-
config.reporters = [...(config.reporters || []), ["jest-console-group-reporter", {
28-
// change this setting if need to see less details for each test
29-
// reportType: "summary" | "details",
30-
// enable: true | false,
31-
afterEachTest: {
32-
enable: true,
33-
filePaths: false,
34-
reportType: "details",
35-
},
36-
afterAllTests: {
37-
reportType: "summary",
38-
enable: true,
39-
filePaths: true,
40-
},
41-
}]];
27+
// NOTE: jest-console-group-reporter@1.1.1 uses @jest/reporters@^30 internally
28+
// (via its peer dep resolution) but this project runs Jest 29, whose globalConfig
29+
// uses testPathPattern (string) not testPathPatterns (object). When any worker
30+
// exits uncleanly the reporter's SummaryReporter.onRunComplete crashes with
31+
// "Cannot read properties of undefined (reading 'isSet')", causing a non-zero
32+
// exit code even when all tests pass. Disabled until the package is updated for
33+
// Jest 29/30 compatibility.
34+
// config.reporters = [...(config.reporters || []), ["jest-console-group-reporter", {
35+
// afterEachTest: { enable: true, filePaths: false, reportType: "details" },
36+
// afterAllTests: { reportType: "summary", enable: true, filePaths: true },
37+
// }]];
4238

4339
module.exports = config;

0 commit comments

Comments
 (0)