Skip to content

Commit a38d806

Browse files
committed
fix(render): pass showTestResults to interactive CLI renderer
Fixes a bug where the interactive CLI text path did not read showTestResults from the session store, so per-test results were never shown even when the feature was enabled.
1 parent 3280330 commit a38d806

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rendering/render.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ function createTextRenderSession(): RenderSession {
6666
}
6767

6868
function createCliTextRenderSession(options: { interactive: boolean }): RenderSession {
69-
const renderer = createCliTextRenderer(options);
69+
const showTestResults = sessionStore.get('showTestResults');
70+
const renderer = createCliTextRenderer({ ...options, showTestResults: showTestResults ?? false });
7071

7172
return createBaseRenderSession({
7273
onEmit: (event) => renderer.onEvent(event),

0 commit comments

Comments
 (0)