Skip to content

Commit e826d53

Browse files
committed
refactor config file
1 parent d592387 commit e826d53

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

playwright.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { defineConfig } from '@playwright/test';
22
import dotenv from 'dotenv';
33
import path from 'path';
4+
45
dotenv.config({ path: path.resolve(__dirname, '.env') });
56

6-
/**
7-
* See https://playwright.dev/docs/test-configuration.
8-
*/
97
export default defineConfig({
108
/* Global Setup (Generate Auth Token) Config */
119
//globalSetup: require.resolve('./src/api/global/global-setup'),
@@ -25,7 +23,7 @@ export default defineConfig({
2523
'html',
2624
{
2725
outputFolder: 'playwright-report',
28-
// If CI exists, pass 'never'. Otherwise, pass 'always' (or 'on-failure')
26+
// If CI exists, pass 'never'. Otherwise, pass 'on-failure'
2927
open: process.env.CI ? 'never' : 'on-failure',
3028
},
3129
],

0 commit comments

Comments
 (0)