Skip to content

Commit

Permalink
use dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
SuttonKyle committed Mar 20, 2024
1 parent 09632c6 commit d08bc88
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 21 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"react-dom": {
"optional": true
}
},
"dependencies": {
"dotenv": "^16.4.5"
}
}
22 changes: 1 addition & 21 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig, devices } from '@playwright/test';
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
require('dotenv').config();

/**
* See https://playwright.dev/docs/test-configuration.
Expand Down Expand Up @@ -46,26 +46,6 @@ export default defineConfig({
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

expect: { timeout: 5000 },
Expand Down

0 comments on commit d08bc88

Please sign in to comment.