puppeteer helpers for testing
server(serverOptions, serverAction): Promise
serverAction({host, port, root, origin}):Promise
serverOptions: {root: string, port: number, routes: Object: host: string}
- Initiates a server, evaluate
serverAction
, then closes the server before returning theserverAction
result