(context: object)
| 243 | >() |
| 244 | |
| 245 | export async function callFixtureCleanup(context: object): Promise<void> { |
| 246 | const cleanupFnArray = cleanupFnArrayMap.get(context) ?? [] |
| 247 | for (const cleanup of cleanupFnArray.reverse()) { |
| 248 | await cleanup() |
| 249 | } |
| 250 | cleanupFnArrayMap.delete(context) |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Returns the current number of cleanup functions registered for the context. |