( suite: Suite, journal: Journal, journalPath: string, credentials: CleanupCredentials, )
| 86 | |
| 87 | /** Runs a suite's cleanup, or deletes only its sandbox repository when the suite defines none. */ |
| 88 | export function cleanupSuite( |
| 89 | suite: Suite, journal: Journal, journalPath: string, credentials: CleanupCredentials, |
| 90 | ): Promise<void> { |
| 91 | if (suite.cleanup) return suite.cleanup(journal, journalPath, credentials); |
| 92 | return cleanupSandbox(new GitHub(credentials.fixtureToken, credentials.request), journal, journalPath); |
| 93 | } |
| 94 | |
| 95 | /** Suites by name. */ |
| 96 | export type SuiteRegistry = Readonly<Record<string, Suite>>; |
no test coverage detected