(linkPath: string, target: string)
| 258 | |
| 259 | // Symlink creation needs privileges on Windows; skip gracefully if it fails. |
| 260 | const link = (linkPath: string, target: string): boolean => { |
| 261 | try { fs.symlinkSync(target, linkPath); return true; } catch { return false; } |
| 262 | }; |
| 263 | |
| 264 | it('allows a real file inside the root (and realpaths consistently)', () => { |
| 265 | expect(validatePathWithinRoot(root, 'src/in.ts')).not.toBeNull(); |
no test coverage detected