chore: set global env for playwright

This commit is contained in:
David Nguyen
2024-03-26 21:39:45 +08:00
parent 844261c35c
commit 074adccae2
4 changed files with 4 additions and 13 deletions

View File

@ -1,10 +1,8 @@
import { defineConfig, devices } from '@playwright/test';
import dotenv from 'dotenv';
import path from 'path';
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
dotenv.config({ path: path.resolve(__dirname, '../../', '.env.local') });
/**
* See https://playwright.dev/docs/test-configuration.