Skip to content

Commit 5d0b484

Browse files
committed
Use ES6 import instead of require for dotenv
Addresses PR feedback from Javier to avoid mixing import/require syntax
1 parent 0584e84 commit 5d0b484

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

e2e/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { defineConfig, devices } from '@playwright/test';
22
import { AuthFile } from './constants/AuthFile';
3+
import dotenv from 'dotenv';
34

45
if (!process.env.CI) {
5-
require("dotenv").config({ path: ".env", quiet: true });
6+
dotenv.config({ path: ".env", quiet: true });
67
}
78

89
export default defineConfig({

0 commit comments

Comments
 (0)