• 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 the withApp higher order function.


    Returns ((config?) => ((...args) => ResponseParser))

    A function can you call to get the microtest request utility.


    const request = withApp(myApplication)()
    const response = await request({ ...args }) // normal args here

Generated using TypeDoc