Skip to content

AndersDJohnson/msw-expect

Repository files navigation

msw-expect

MSW works great to mock responses in unit tests, but it's missing a way to assert on what requests are made like nock can. Well, now you can too with msw-expect and Jest!

Like nock, you can also make tests fail when any non-mocked request occurs to increase reliability and reduce side effects (see Manual Server).

Works with TypeScript!

Read the docs.

About

Assert on mocked requests with MSW & Jest.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published