| 18 | export type TestAction = (arg?: any) => Promise<any> | any; |
| 19 | |
| 20 | export interface TestRegistry { |
| 21 | setAction(name: string, fn: TestAction): void; |
| 22 | unsetAction(name: string | string[]): void; |
| 23 | callAction(name: string, arg?: any): Promise<any>; |
| 24 | listActions(): string[]; |
| 25 | navigateTo(path: string): Promise<void>; |
| 26 | getTask(taskId: string): Promise<any>; |
| 27 | getErrors(): string[]; |
| 28 | clearErrors(): void; |
| 29 | } |
| 30 | |
| 31 | // ===== 内部可变引用(默认 no-op,PRO 模式下会被覆写) ===== |
| 32 | let _setAction: (name: string, fn: TestAction) => void = () => {}; |
no outgoing calls
no test coverage detected