(absPath: string)
| 433 | } |
| 434 | |
| 435 | function shouldReloadForPath(absPath: string): boolean { |
| 436 | if (shouldTrackPath(absPath)) return true; |
| 437 | if (isWithinOrEqual(moduleRoot, absPath)) return true; |
| 438 | for (const target of watchTargets) { |
| 439 | if (isWithinOrEqual(target, absPath)) return true; |
| 440 | } |
| 441 | return false; |
| 442 | } |
| 443 | |
| 444 | function onWatchEvent( |
| 445 | watchDir: string, |
no test coverage detected