-
Couldn't load subscription status.
- Fork 732
Open
@skondrashov
Description
Describe the bug
The "full example" at https://testing-library.com/docs/react-testing-library/example-intro imports rest from msw, which is not exported by the latest version of msw (2.1.7).
To Reproduce
- Go to https://testing-library.com/docs/react-testing-library/example-intro
- Use the Full Example to set up a test in your own project
- Realize that you don't have msw installed
npm i -D msw- Get
Module '"msw"' has no exported member 'rest'.error
Expected behavior
No errors on the import {rest} from msw line
Additional context
I'm guessing the documentation was written when rest was a thing, now http appears to have replaced it.
Metadata
Metadata
Assignees
Labels
No labels