MCPcopy
hub / github.com/ZenNotes/zennotes / TestWatcher

Class TestWatcher

apps/desktop/src/main/window-vaults.test.ts:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { WindowVaultRegistry, type VaultWatcherLike } from './window-vaults'
5
6class TestWatcher implements VaultWatcherLike {
7 root: string | null = null
8 stopped = false
9 onEvent: ((ev: VaultChangeEvent) => void) | null = null
10
11 start(root: string, onEvent: (ev: VaultChangeEvent) => void): void {
12 this.root = root
13 this.onEvent = onEvent
14 }
15
16 stop(): void {
17 this.stopped = true
18 }
19}
20
21function change(path: string): VaultChangeEvent {
22 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected