MCPcopy Create free account
hub / github.com/mdevils/html-entities / cleanNodeModulesCache

Function cleanNodeModulesCache

benchmark/benchmark.ts:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15(global as GlobalWithRequire).require = require;
16
17function cleanNodeModulesCache() {
18 const cache = (global as GlobalWithRequire).require.cache;
19 for (const cacheKey of Object.keys(cache)) {
20 delete cache[cacheKey];
21 }
22}
23
24function createRequireTests(modules: Record<string, string>) {
25 return Object.keys(modules).reduce((result, moduleName) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected