diff --git a/test/support/withHandlers.ts b/test/support/withHandlers.ts index ef605df..f6dca5d 100644 --- a/test/support/withHandlers.ts +++ b/test/support/withHandlers.ts @@ -1,6 +1,11 @@ import { RequestHandler } from 'msw' import { setupServer } from 'msw/node' +/** + * Creates an MSW `server` instance, populates it + * with the given `handlers`, runs the `callback`, + * and cleans up afterward. + */ export async function withHandlers( handlers: Array, callback: () => Promise,