diff --git a/code/addons/test/src/node/vitest-manager.ts b/code/addons/test/src/node/vitest-manager.ts index 37e6e0588aa1..59aba03e7c71 100644 --- a/code/addons/test/src/node/vitest-manager.ts +++ b/code/addons/test/src/node/vitest-manager.ts @@ -80,7 +80,11 @@ export class VitestManager { }); } - await this.vitest.init(); + try { + await this.vitest.init(); + } catch (e) { + this.testManager.reportFatalError('Failed to init Vitest', e); + } if (watchMode) { await this.setupWatchers(); diff --git a/code/core/src/manager/components/sidebar/SidebarBottom.tsx b/code/core/src/manager/components/sidebar/SidebarBottom.tsx index e39f7595188d..89b89ca7d596 100644 --- a/code/core/src/manager/components/sidebar/SidebarBottom.tsx +++ b/code/core/src/manager/components/sidebar/SidebarBottom.tsx @@ -122,7 +122,7 @@ export const SidebarBottomBase = ({ useEffect(() => { const onCrashReport = ({ providerId, ...details }: TestingModuleCrashReportPayload) => { api.updateTestProviderState(providerId, { - details, + error: { name: 'Crashed!', message: details.error.message }, running: false, crashed: true, watching: false,