UNPKG

creevey

Version:

Cross-browser screenshot testing tool for Storybook with fancy UI Runner

15 lines (11 loc) 364 B
import type { Container } from 'dockerode'; let workerContainer: Container | null = null; export function setWorkerContainer(container: Container): void { workerContainer = container; } export async function removeWorkerContainer(): Promise<void> { if (workerContainer) { await workerContainer.remove({ force: true }); workerContainer = null; } }