keepassxc-browser/tests/global-setup.ts

11 lines
333 B
TypeScript
Raw Permalink Normal View History

2024-07-14 12:02:11 +00:00
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 });
}