Files
AdGuardHome/client/tests/e2e/globalTeardown.ts
2025-03-11 13:36:04 +03:00

12 lines
282 B
TypeScript

import { existsSync, unlinkSync } from 'fs';
import { CONFIG_FILE_PATH } from '../constants';
async function globalTeardown() {
// Remove the test config file
if (existsSync(CONFIG_FILE_PATH)) {
unlinkSync(CONFIG_FILE_PATH);
}
}
export default globalTeardown;