MCPcopy
hub / github.com/vitest-dev/vitest / findById

Function findById

packages/ui/client/composables/client/index.ts:80–83  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

78export const currentLogs = computed(() => getTasks(current.value).map(i => i?.logs || []).flat() || [])
79
80export function findById(id: string) {
81 const file = client.state.idMap.get(id)
82 return file ? file as RunnerTestFile : undefined
83}
84
85export const isConnected = computed(() => status.value === 'OPEN')
86export const isConnecting = computed(() => status.value === 'CONNECTING')

Callers 10

setCurrentFileIdFunction · 0.90
initializeNavigationFunction · 0.90
navigateToFunction · 0.90
runExpandAllFunction · 0.90
runCollectFunction · 0.90
traverseFilesFunction · 0.90
traverseReceivedFilesFunction · 0.90
collectDataFunction · 0.90
runFilterFunction · 0.90
index.tsFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected