File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { parseNumber } from '@douglasneuroinformatics/libjs';
44import { defineConfig , devices } from '@playwright/test' ;
55
66const API_PORT = parseNumber ( process . env . API_DEV_SERVER_PORT ) ;
7+ const GATEWAY_PORT = parseNumber ( process . env . GATEWAY_DEV_SERVER_PORT ) ;
78const WEB_PORT = parseNumber ( process . env . WEB_DEV_SERVER_PORT ) ;
89
910export 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 ]
You can’t perform that action at this time.
0 commit comments