Skip to content

Commit

Permalink
test: playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Aug 2, 2024
1 parent 9f37d1d commit 38f2a02
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
Empty file removed .env.template
Empty file.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"@vitest/coverage-v8": "2.0.5",
"babel-loader": "9.1.3",
"concurrently": "8.2.2",
"dotenv": "^16.4.5",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "9.1.0",
Expand Down
12 changes: 6 additions & 6 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig, devices } from '@playwright/test';

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// import dotenv from 'dotenv';
// dotenv.config({ path: path.resolve(__dirname, '.env') });
import dotenv from 'dotenv';
import path from 'path';

dotenv.config({
path: path.resolve(__dirname, 'examples/nextjs-example/.env.template'),
});

/**
* See https://playwright.dev/docs/test-configuration.
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38f2a02

Please sign in to comment.