npm.io
0.0.4 • Published 8 years ago

@hugov/test-server

Licence
MIT
Version
0.0.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0

puppet-call

puppeteer helpers for testing

API

  • 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 the serverAction result

License

MIT Hugo Villeneuve

Keywords