(description: string, callback: (result?: "failed" | "passed" | "pending") => Promise<any> | any)
| 630 | logger.info(`Done running deferred functions!`); |
| 631 | }); |
| 632 | export function defer(description: string, callback: (result?: "failed" | "passed" | "pending") => Promise<any> | any): void { |
| 633 | deferredItems.push({ description: `${description} (${currentTestName})`, callback }); |
| 634 | } |
| 635 | export function deferUntilLast(description: string, callback: (result?: "failed" | "passed" | "pending") => Promise<any> | any): void { |
| 636 | deferredToLastItems.push({ description: `${description} (${currentTestName})`, callback }); |
| 637 | } |
no outgoing calls