(p: string)
| 152 | } |
| 153 | |
| 154 | function realpathOrNull(p: string): string | null { |
| 155 | try { |
| 156 | return fs.realpathSync(p); |
| 157 | } catch { |
| 158 | return null; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Indirection over `fs.watch` so tests can inject a fake that throws or emits |