| 33 | } |
| 34 | |
| 35 | interface MockLoadingTask { |
| 36 | promise: Promise<{ destroy: () => Promise<void> }>; |
| 37 | onPassword: ((callback: (pw: string) => void, reason: number) => void) | null; |
| 38 | destroy: () => Promise<void>; |
| 39 | } |
| 40 | |
| 41 | function mockDestroy() { |
| 42 | return vi.fn().mockReturnValue(Promise.resolve()); |
nothing calls this directly
no outgoing calls
no test coverage detected