The application to run on each request
A function can you call to get the microtest request utility.
Optional
config: RunnerConfigurationRest
...args: [callback: ((_) => RequestBuilder)]const request = withApp(myApplication)()
const response = await request({ ...args }) // normal args here
Generated using TypeDoc
Occassionally, your server will be constructed in such a way that you want to create, listen, and then tear down the server on every request, rather than starting and stopping your server in before & after each hooks. To accomodate this use-case,
microtest
provides thewithApp
higher order function.