Skip to content

Commit 591efe5

Browse files
committed
configure gateway in test
1 parent 8c15592 commit 591efe5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

testing/e2e/playwright.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { parseNumber } from '@douglasneuroinformatics/libjs';
44
import { defineConfig, devices } from '@playwright/test';
55

66
const API_PORT = parseNumber(process.env.API_DEV_SERVER_PORT);
7+
const GATEWAY_PORT = parseNumber(process.env.GATEWAY_DEV_SERVER_PORT);
78
const WEB_PORT = parseNumber(process.env.WEB_DEV_SERVER_PORT);
89

910
export default defineConfig({
@@ -52,15 +53,27 @@ export default defineConfig({
5253
signal: 'SIGINT',
5354
timeout: 1000
5455
},
56+
timeout: 10_000,
5557
url: `http://localhost:${API_PORT}`
5658
},
59+
{
60+
command: 'pnpm dev:test',
61+
cwd: path.resolve(import.meta.dirname, '../../apps/gateway'),
62+
gracefulShutdown: {
63+
signal: 'SIGINT',
64+
timeout: 1000
65+
},
66+
timeout: 10_000,
67+
url: `http://localhost:${GATEWAY_PORT}/api/healthcheck`
68+
},
5769
{
5870
command: 'pnpm dev:test',
5971
cwd: path.resolve(import.meta.dirname, '../../apps/web'),
6072
gracefulShutdown: {
6173
signal: 'SIGINT',
6274
timeout: 1000
6375
},
76+
timeout: 10_000,
6477
url: `http://localhost:${WEB_PORT}`
6578
}
6679
]

0 commit comments

Comments
 (0)