(linkPath: string, target: string)
| 202 | |
| 203 | // Symlink creation needs privileges on Windows; skip gracefully if it fails. |
| 204 | const link = (linkPath: string, target: string): boolean => { |
| 205 | try { fs.symlinkSync(target, linkPath); return true; } catch { return false; } |
| 206 | }; |
| 207 | |
| 208 | it('allows a real file inside the root (and realpaths consistently)', () => { |
| 209 | expect(validatePathWithinRoot(root, 'src/in.ts')).not.toBeNull(); |