Skip to content

Commit 5be0c2c

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

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

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

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

49
const PORT = process.env.PORT || '3000'
510

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

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

49
const PORT = process.env.PORT || '3000'
510

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

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

49
const PORT = process.env.PORT || '3000'
510

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

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

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

610
export default defineConfig({

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

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

49
const PORT = process.env.PORT || '3000'
510

0 commit comments

Comments
 (0)