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

Method clearDefinitions

packages/runner/src/fixture.ts:41–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 private static _workerContextSuite = { type: 'worker' } as const
40
41 static clearDefinitions(): void {
42 TestFixtures._definitions.length = 0
43 }
44
45 static getWorkerContexts(): Record<string, any>[] {
46 return TestFixtures._definitions.map(f => f.getWorkerContext())

Callers 1

startTestsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected