(opts?: {
syncState?: SyncState
skipWatcher?: boolean
pushSuppressedReason?: string | null
})
| 363 | * need a real watcher. |
| 364 | */ |
| 365 | export function _resetWatcherStateForTesting(opts?: { |
| 366 | syncState?: SyncState |
| 367 | skipWatcher?: boolean |
| 368 | pushSuppressedReason?: string | null |
| 369 | }): void { |
| 370 | watcher = null |
| 371 | debounceTimer = null |
| 372 | pushInProgress = false |
| 373 | hasPendingChanges = false |
| 374 | currentPushPromise = null |
| 375 | watcherStarted = opts?.skipWatcher ?? false |
| 376 | pushSuppressedReason = opts?.pushSuppressedReason ?? null |
| 377 | syncState = opts?.syncState ?? null |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * Test-only: start the real fs.watch on a specified directory. |
nothing calls this directly
no outgoing calls
no test coverage detected