Skip to content

TestServer

reference
1 min readUpdated

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

MethodSignatureReturns
startstart()Promise<number>
stopstop()Promise<void>
getBaseUrlgetBaseUrl()string
getUrlgetUrl(page: string, params: Record<string, string>)string
getLoginUrlgetLoginUrl()string
getDashboardUrlgetDashboardUrl()string

Was this page helpful?

Download as PDF