Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 12, 2024
1 parent 68f9407 commit a8da5cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/ui/client/composables/client/static.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -72,6 +71,7 @@ export function createStaticClient(): VitestClient {
removeSnapshotFile: asyncNoop,
onUnhandledError: noop,
saveTestFile: asyncNoop,
getProvidedContext: () => ({}),
} as WebSocketHandlers

ctx.rpc = rpc as any as BirpcReturn<WebSocketHandlers, WebSocketEvents>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/client/composables/error.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/client/composables/summary.ts
Original file line number Diff line number Diff line change
@@ -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> = T | null | undefined
Expand Down

0 comments on commit a8da5cd

Please sign in to comment.