Use native node 24 .env loader (#4970)

This commit is contained in:
Denys Vuika
2026-01-08 13:43:39 +00:00
committed by GitHub
parent b4f5ea1f05
commit dd7852ead1
4 changed files with 17 additions and 35 deletions
@@ -68,7 +68,7 @@ async function createOutputFolders() {
async function removeOutputFolders() {
if (fs.existsSync(paths.rootFolder)) {
fs.rmdirSync(paths.rootFolder, { recursive: true });
fs.rmSync(paths.rootFolder, { recursive: true, force: true });
}
}
@@ -23,12 +23,18 @@
*/
import { PlaywrightTestConfig, devices, chromium } from '@playwright/test';
import { loadEnvFile } from 'node:process';
import { timeouts } from '../utils';
import { getReporter } from './report-portal.config';
type LaunchOptions = Parameters<typeof chromium.launch>[0];
require('@alfresco/adf-cli/tooling').dotenvConfig();
try {
loadEnvFile();
} catch (error) {
// .env file is optional, continue without it
}
const { env } = process;
interface BrowserConfig {