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 dotenv from 'dotenv';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
// Read from default ".env" file.
|
// Read from ".env" file.
|
||||||
dotenv.config();
|
dotenv.config({ path: path.resolve(__dirname, '.env') });
|
||||||
|
|
||||||
// Alternatively, read from "../my.env" file.
|
// Alternatively, read from "../my.env" file.
|
||||||
dotenv.config({ path: path.resolve(__dirname, '..', 'my.env') });
|
dotenv.config({ path: path.resolve(__dirname, '..', 'my.env') });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue