()
| 53 | // --------------------------------------------------------------------------- |
| 54 | |
| 55 | function resolveSemverPath() { |
| 56 | const candidates = [ |
| 57 | path.join(ROOT_DIR, 'node_modules', 'semver'), |
| 58 | '/tmp/test-deps/node_modules/semver', |
| 59 | ]; |
| 60 | for (const c of candidates) { |
| 61 | if (fs.existsSync(c)) return c; |
| 62 | } |
| 63 | return null; |
| 64 | } |
| 65 | |
| 66 | const SEMVER_PATH = resolveSemverPath(); |
| 67 |
no test coverage detected