Kind: Class
Source: atloria-monorepo/apps/screenshot-worker/test/helpers/test-server.ts
Simple test server for serving fixture pages
Usage: const server = new TestServer(); await server.start(); // Use server.getUrl('simple') to get full URL await server.stop();
Methods
| Method | Signature | Returns |
|---|---|---|
start | start() | Promise<number> |
stop | stop() | Promise<void> |
getBaseUrl | getBaseUrl() | string |
getUrl | getUrl(page: string, params: Record<string, string>) | string |
getLoginUrl | getLoginUrl() | string |
getDashboardUrl | getDashboardUrl() | string |
Was this page helpful?