Skip to content

Commit e85d51c

Browse files
committed
use .env.test consistently in exercises
1 parent bb75706 commit e85d51c

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

exercises/04.debugging/01.problem.ui-mode/playwright.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { defineConfig, devices } from '@playwright/test'
2-
import 'dotenv/config'
2+
import dotenv from 'dotenv'
3+
4+
dotenv.config()
5+
6+
dotenv.config({
7+
path: new URL('./.env.test', import.meta.url),
8+
override: true,
9+
})
310

411
const PORT = process.env.PORT || '3000'
512

exercises/04.debugging/01.solution.ui-mode/playwright.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { defineConfig, devices } from '@playwright/test'
2-
import 'dotenv/config'
2+
import dotenv from 'dotenv'
33

4+
dotenv.config()
5+
6+
dotenv.config({
7+
path: new URL('./.env.test', import.meta.url),
8+
override: true,
9+
})
410
const PORT = process.env.PORT || '3000'
511

612
export default defineConfig({

exercises/04.debugging/02.problem.trace-viewer/playwright.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { defineConfig, devices } from '@playwright/test'
2-
import 'dotenv/config'
2+
import dotenv from 'dotenv'
3+
4+
dotenv.config()
5+
6+
dotenv.config({
7+
path: new URL('./.env.test', import.meta.url),
8+
override: true,
9+
})
310

411
const PORT = process.env.PORT || '3000'
512

exercises/04.debugging/03.problem.live-debugging/playwright.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { defineConfig, devices } from '@playwright/test'
2-
import 'dotenv/config'
2+
import dotenv from 'dotenv'
3+
4+
dotenv.config()
5+
6+
dotenv.config({
7+
path: new URL('./.env.test', import.meta.url),
8+
override: true,
9+
})
310

411
const PORT = process.env.PORT || '3000'
512

exercises/04.debugging/03.solution.live-debugging/playwright.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { defineConfig, devices } from '@playwright/test'
2-
import 'dotenv/config'
2+
import dotenv from 'dotenv'
3+
4+
dotenv.config()
5+
6+
dotenv.config({
7+
path: new URL('./.env.test', import.meta.url),
8+
override: true,
9+
})
310

411
const PORT = process.env.PORT || '3000'
512

0 commit comments

Comments
 (0)