Skip to content

Commit 130fdda

Browse files
Fix processTimeoutCauses handling in StorybookReporter for Vitest compatibility
1 parent 8ae696f commit 130fdda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/addons/vitest/src/node/reporter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export class StorybookReporter implements Reporter {
6060
this.ctx.state.pathsSet.clear();
6161
this.ctx.state.idMap.clear();
6262
this.ctx.state.errorsSet.clear();
63-
this.ctx.state.processTimeoutCauses.clear();
63+
// TODO: Remove this once we don't support Vitest < 4
64+
// @ts-expect-error processTimeoutCauses does not exist in Vitest 4
65+
this.ctx.state.processTimeoutCauses?.clear();
6466
}
6567
}

0 commit comments

Comments
 (0)