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

Method loadFiles

packages/ui/client/composables/explorer/tree.ts:65–81  ·  view source on GitHub ↗
(remoteFiles: File[], projects: { name: string; color?: string }[])

Source from the content-addressed store, hash-verified

63 }
64
65 loadFiles(remoteFiles: File[], projects: { name: string; color?: string }[]) {
66 this.projects.splice(0, this.projects.length, ...projects.map(p => p.name))
67 this.colors = new Map(projects.map(p => [p.name, p.color]))
68
69 runLoadFiles(
70 remoteFiles,
71 true,
72 searchMatcher.value.matcher,
73 {
74 failed: filter.failed,
75 success: filter.success,
76 skipped: filter.skipped,
77 slow: filter.slow,
78 onlyTests: filter.onlyTests,
79 },
80 )
81 }
82
83 startRun() {
84 this.startTime = performance.now()

Callers 1

index.tsFile · 0.45

Calls 1

runLoadFilesFunction · 0.90

Tested by

no test coverage detected