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

Method experimental_clearCache

packages/vitest/src/node/core.ts:601–604  ·  view source on GitHub ↗

* Deletes all Vitest caches, including `experimental.fsModuleCache`. * @experimental

()

Source from the content-addressed store, hash-verified

599 * @experimental
600 */
601 public async experimental_clearCache(): Promise<void> {
602 await this.cache.results.clearCache()
603 await this._fsCache.clearCache()
604 }
605
606 /**
607 * Merge reports from multiple runs located in the specified directory (value from `--merge-reports` if not specified).

Callers 2

startVitestFunction · 0.80
onInitFunction · 0.80

Calls 1

clearCacheMethod · 0.45

Tested by 1

onInitFunction · 0.64