diff --git a/packages/ui/client/composables/client/static.ts b/packages/ui/client/composables/client/static.ts index 31ecdb1805b2..333226b50213 100644 --- a/packages/ui/client/composables/client/static.ts +++ b/packages/ui/client/composables/client/static.ts @@ -1,9 +1,8 @@ import type { BirpcReturn } from 'birpc' import type { VitestClient } from '@vitest/ws-client' -import type { WebSocketEvents, WebSocketHandlers } from 'vitest/src/api/types' +import type { File, ModuleGraphData, ResolvedConfig, WebSocketEvents, WebSocketHandlers } from 'vitest' import { parse } from 'flatted' import { decompressSync, strFromU8 } from 'fflate' -import type { File, ModuleGraphData, ResolvedConfig } from 'vitest/src/types' import { StateManager } from '../../../../vitest/src/node/state' interface HTMLReportMetadata { @@ -72,6 +71,7 @@ export function createStaticClient(): VitestClient { removeSnapshotFile: asyncNoop, onUnhandledError: noop, saveTestFile: asyncNoop, + getProvidedContext: () => ({}), } as WebSocketHandlers ctx.rpc = rpc as any as BirpcReturn diff --git a/packages/ui/client/composables/error.ts b/packages/ui/client/composables/error.ts index 0ddd3d6a3324..206ee280b6d0 100644 --- a/packages/ui/client/composables/error.ts +++ b/packages/ui/client/composables/error.ts @@ -1,6 +1,6 @@ import Filter from 'ansi-to-html' import type { ErrorWithDiff } from 'vitest' -import { parseStacktrace } from '../../../utils/src/source-map' +import { parseStacktrace } from '@vitest/utils/source-map' export function shouldOpenInEditor(name: string, fileName?: string) { return fileName && name.endsWith(fileName) diff --git a/packages/ui/client/composables/summary.ts b/packages/ui/client/composables/summary.ts index 68d57d13c787..7193cb72902d 100644 --- a/packages/ui/client/composables/summary.ts +++ b/packages/ui/client/composables/summary.ts @@ -1,5 +1,5 @@ import { hasFailedSnapshot } from '@vitest/ws-client' -import type { Custom, Task, Test } from 'vitest/src' +import type { Custom, Task, Test } from 'vitest' import { files, testRunState } from '~/composables/client' type Nullable = T | null | undefined