Initial Commit
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

This commit is contained in:
2026-08-28 22:55:32 +10:00
parent d8d4ecbe8a
commit f00405ed24
16 changed files with 1008 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
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));
}