()
| 37 | delete require.cache[require.resolve(modulePath)] |
| 38 | } |
| 39 | function removeLibModuleCache () { |
| 40 | const libPath = path.resolve(path.join(__dirname, '../../lib')) |
| 41 | Object.keys(require.cache).forEach(key => { |
| 42 | if (key.startsWith(libPath)) { |
| 43 | delete require.cache[require.resolve(key)] |
| 44 | } |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | exports.makeMockSocket = makeMockSocket |
| 49 | exports.removeModuleFromRequireCache = removeModuleFromRequireCache |
no outgoing calls
no test coverage detected