# TestServer

**Kind:** Class

**Source:** [`atloria-monorepo/apps/screenshot-worker/test/helpers/test-server.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/screenshot-worker/test/helpers/test-server.ts#L14)

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` |
