()
| 120 | } |
| 121 | |
| 122 | function restartWatching(): void { |
| 123 | if (watcher) { |
| 124 | void watcher.close() |
| 125 | watcher = null |
| 126 | } |
| 127 | const paths = resolveWatchPaths() |
| 128 | if (paths.length > 0) { |
| 129 | startWatching(paths) |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | export async function onCwdChangedForHooks( |
| 134 | oldCwd: string, |
no test coverage detected