MCPcopy Index your code
hub / github.com/hackmdio/codimd / removeModuleFromRequireCache

Function removeModuleFromRequireCache

test/realtime/utils.js:36–38  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

34}
35
36function removeModuleFromRequireCache (modulePath) {
37 delete require.cache[require.resolve(modulePath)]
38}
39function removeLibModuleCache () {
40 const libPath = path.resolve(path.join(__dirname, '../../lib'))
41 Object.keys(require.cache).forEach(key => {

Calls

no outgoing calls

Tested by

no test coverage detected