keepassxc-browser/tests/global-setup.ts
2024-07-14 18:50:01 +03:00

10 lines
333 B
TypeScript

import type { FullConfig } from '@playwright/test';
import fs from 'fs';
const DEST = 'keepassxc-browser/tests';
export default async function globalSetup(config: FullConfig) {
// Create a temporary directory and copy tests/* to keepassxc-browser/tests
fs.existsSync(DEST);
fs.cpSync('./tests', DEST, { recursive: true });
}