Create a microtest runner. This runner can be used to make requests, parse the results, and make assertions about the response.
const request = microtest('http://localhost:9999')const response = await request(ctx => ctx.get('/').query({ foo: 'bar' })).status(200).json()expect(response.message).toEqual('something from my api')
a function that can be used to make and parse HTTP requests
The base url that all requests should be made to
Optionally, a configuration object customizing the behavior of the request builder
Generated using TypeDoc
Create a microtest runner. This runner can be used to make requests, parse the results, and make assertions about the response.
Example
Returns
a function that can be used to make and parse HTTP requests