playwright-cleanup
Version:
A Playwright cleanup plugin
13 lines (12 loc) • 424 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.playwrightCleanup = void 0;
const cleanup_1 = require("../entities/cleanup");
const _playwrightCleanup = {
cleanup: async ({ cleanupOptions }, use) => {
const cleanup = new cleanup_1.Cleanup(cleanupOptions);
await use(cleanup);
await cleanup.finalize();
}
};
exports.playwrightCleanup = _playwrightCleanup;