docs(test-parameterize): use absolute dotenv import (#31149)

This commit is contained in:
Max Schmitt 2024-06-04 20:07:59 +02:00 committed by GitHub
parent 76b25e84cc
commit 34dac6523c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,8 +216,8 @@ import { defineConfig } from '@playwright/test';
import dotenv from 'dotenv';
import path from 'path';
// Read from default ".env" file.
dotenv.config();
// Read from ".env" file.
dotenv.config({ path: path.resolve(__dirname, '.env') });
// Alternatively, read from "../my.env" file.
dotenv.config({ path: path.resolve(__dirname, '..', 'my.env') });