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

Method clearCache

packages/vitest/src/node/cache/results.ts:40–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 async clearCache(): Promise<void> {
41 if (this.cachePath && existsSync(this.cachePath)) {
42 await rm(this.cachePath, { force: true, recursive: true })
43 this.logger.log('[cache] cleared results cache at', this.cachePath)
44 }
45 }
46
47 async readFromCache(): Promise<void> {
48 if (!this.cachePath) {

Callers 3

_setServerMethod · 0.45

Calls 2

rmFunction · 0.50
logMethod · 0.45

Tested by

no test coverage detected