Files
dredgegram/playwright/global-setup.js
T
dredgy f00405ed24
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s
Initial Commit
2026-08-28 22:55:32 +10:00

11 lines
391 B
JavaScript

import fs from 'fs';
import path from 'path';
import { getStorageState } from './pwhelpers.js';
export default async function globalSetup() {
const storageState = await getStorageState();
const outPath = path.resolve(__dirname, '.auth', 'ig-session.json');
fs.mkdirSync(path.dirname(outPath), { recursive: true });
fs.writeFileSync(outPath, JSON.stringify(storageState));
}