use const for test config file
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export const ADMIN_USERNAME = 'admin';
|
||||
export const ADMIN_PASSWORD = 'superpassword';
|
||||
export const PORT = 3000;
|
||||
export const CONFIG_FILE_PATH = '/tmp/AdGuard.e2e.yaml';
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user