mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Use native node 24 .env loader (#4970)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user