From 3b986a1faf4f1d4b853ebbdb94c4c6e109e779b6 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 4 Jun 2024 20:07:54 +0200 Subject: [PATCH] chore: absolute dotenv path import (#123) --- assets/playwright.config.js | 2 +- assets/playwright.config.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/playwright.config.js b/assets/playwright.config.js index 62a6510..259be7d 100644 --- a/assets/playwright.config.js +++ b/assets/playwright.config.js @@ -5,7 +5,7 @@ const { defineConfig, devices } = require('@playwright/test'); * Read environment variables from file. * https://github.com/motdotla/dotenv */ -// require('dotenv').config(); +// require('dotenv').config({ path: path.resolve(__dirname, '.env') }); /** * @see https://playwright.dev/docs/test-configuration diff --git a/assets/playwright.config.ts b/assets/playwright.config.ts index fd19e08..3921964 100644 --- a/assets/playwright.config.ts +++ b/assets/playwright.config.ts @@ -4,7 +4,8 @@ import { defineConfig, devices } from '@playwright/test'; * Read environment variables from file. * https://github.com/motdotla/dotenv */ -// require('dotenv').config(); +// import dotenv from 'dotenv'; +// dotenv.config({ path: path.resolve(__dirname, '.env') }); /** * See https://playwright.dev/docs/test-configuration.