feat: init

This commit is contained in:
montaghanmy
2023-03-23 11:03:16 +01:00
commit 10fe6f78d1
11518 changed files with 509786 additions and 0 deletions
@@ -0,0 +1,10 @@
import { Page } from "puppeteer";
import config from "../config";
export const screenshot = async (context: string, page: Page) => {
const currentDate = new Date().toLocaleTimeString();
await page.screenshot({
path: `${config.screenshot_path}/${context}-${currentDate}.png`,
});
};