Skip to content

Commit d8ee3e7

Browse files
committed
feat: add netcheck command for debugging
1 parent 423ad7b commit d8ee3e7

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎e2e/docker-compose.e2e.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
traefik:
33
image: traefik:v3.7.8
4+
pull_policy: missing
45
command: |
56
--api.insecure=true
67
--providers.docker
@@ -12,6 +13,7 @@ services:
1213

1314
whoami:
1415
image: traefik/whoami:v1.11.0
16+
pull_policy: missing
1517
labels:
1618
traefik.enable: true
1719
traefik.http.routers.whoami.rule: Host(`whoami.127.0.0.1.sslip.io`)

‎e2e/package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"main": "index.js",
66
"scripts": {
77
"down": "docker compose -f docker-compose.e2e.yml down",
8-
"up": "docker compose -f docker-compose.e2e.yml up --build --pull=always --force-recreate --remove-orphans",
8+
"up": "docker compose -f docker-compose.e2e.yml up --build --force-recreate --remove-orphans",
99
"test": "playwright test",
10-
"report": "playwright show-report"
10+
"report": "playwright show-report",
11+
"netcheck": "curl http://tinyauth.127.0.0.1.sslip.io/api/healthz && curl localhost"
1112
},
1213
"keywords": [],
1314
"author": "",

‎e2e/playwright.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineConfig({
3535
},
3636
],
3737
webServer: {
38-
command: 'docker compose -f docker-compose.e2e.yml up --build --pull=always --force-recreate --remove-orphans',
38+
command: 'pnpm run up && pnpm run netcheck',
3939
url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz',
4040
reuseExistingServer: true,
4141
timeout: 5 * 60 * 1000,

0 commit comments

Comments
 (0)