gauge-ts
Version:
Typescript runner for Gauge
20 lines (19 loc) • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScreenshotStore = void 0;
// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
class ScreenshotStore {
static screenshotFiles = [];
static pendingScreenshots() {
const s = ScreenshotStore.screenshotFiles;
ScreenshotStore.clear();
return s;
}
static addScreenshot(screenshotFile) {
ScreenshotStore.screenshotFiles.push(screenshotFile);
}
static clear() {
ScreenshotStore.screenshotFiles = new Array();
}
}
exports.ScreenshotStore = ScreenshotStore;