use const for test config file

This commit is contained in:
Ildar Kamalov
2025-02-18 17:40:41 +03:00
parent 58faa7c537
commit 26b0eddaca
3 changed files with 6 additions and 5 deletions

View File

@@ -1,11 +1,10 @@
import { existsSync, unlinkSync } from 'fs';
export const CONFIG_FILE = '/tmp/AdGuard.temp.e2e.yaml';
import { CONFIG_FILE_PATH } from '../constants';
async function globalTeardown() {
// Remove the test config file
if (existsSync(CONFIG_FILE)) {
unlinkSync(CONFIG_FILE);
if (existsSync(CONFIG_FILE_PATH)) {
unlinkSync(CONFIG_FILE_PATH);
}
}