(execFileStub)
| 25 | let installRoot; |
| 26 | |
| 27 | function freshRequireForceUpdate(execFileStub) { |
| 28 | delete require.cache[forceUpdateModPath]; |
| 29 | require.cache[pathsModPath] = { |
| 30 | id: pathsModPath, filename: pathsModPath, loaded: true, |
| 31 | exports: { getEvolverInstallRoot: () => installRoot }, |
| 32 | }; |
| 33 | childProcess.execFileSync = execFileStub; |
| 34 | const mod = require('../src/forceUpdate'); |
| 35 | childProcess.execFileSync = origExecFileSync; |
| 36 | return mod; |
| 37 | } |
| 38 | |
| 39 | function writeInstallPkg(version) { |
| 40 | fs.writeFileSync( |
no outgoing calls
no test coverage detected