Files
AdGuardHome/client/tests/e2e/globalTeardown.ts
2025-02-18 17:31:04 +03:00

13 lines
281 B
TypeScript

import { existsSync, unlinkSync } from 'fs';
export const CONFIG_FILE = '/tmp/AdGuard.temp.e2e.yaml';
async function globalTeardown() {
// Remove the test config file
if (existsSync(CONFIG_FILE)) {
unlinkSync(CONFIG_FILE);
}
}
export default globalTeardown;