From 3eafa3d3c07e05c96f9c0ae7a6ea98d03790fbf8 Mon Sep 17 00:00:00 2001 From: Kaelan Cooter Date: Tue, 8 Oct 2019 14:21:44 -0400 Subject: [PATCH 1/2] Added console group APIs to NullConsole Fixes https://github.com/facebook/jest/issues/9018 --- packages/jest-console/src/NullConsole.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/jest-console/src/NullConsole.ts b/packages/jest-console/src/NullConsole.ts index 7f9f59ebad78..18336116e44a 100644 --- a/packages/jest-console/src/NullConsole.ts +++ b/packages/jest-console/src/NullConsole.ts @@ -18,4 +18,7 @@ export default class NullConsole extends CustomConsole { timeEnd() {} trace() {} warn() {} + group() {} + groupCollapsed() {} + groupEnd() {} } From c442b43de6aa179ec3c44615be4137bc23899437 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sat, 26 Oct 2019 09:40:18 +0200 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 507920b30aed..4566034e4244 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - `[expect]` Display `expectedDiff` more carefully in `toBeCloseTo` ([#8389](https://github.com/facebook/jest/pull/8389)) - `[expect]` Avoid incorrect difference for subset when `toMatchObject` fails ([#9005](https://github.com/facebook/jest/pull/9005)) +- `[jest-console]` Add missing `console.group` calls to `NullConsole` ([#9024](https://github.com/facebook/jest/pull/9024)) - `[jest-core]` Don't include unref'd timers in --detectOpenHandles results ([#8941](https://github.com/facebook/jest/pull/8941)) - `[jest-diff]` Do not inverse format if line consists of one change ([#8903](https://github.com/facebook/jest/pull/8903)) - `[jest-fake-timers]` `getTimerCount` will not include cancelled immediates ([#8764](https://github.com/facebook/jest/pull/8764))