mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(test-parameterize): use absolute dotenv import (#31149)
This commit is contained in:
parent
76b25e84cc
commit
34dac6523c
@ -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') });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user