Open skondrashov opened 8 months ago
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).
rest
To Reproduce
npm i -D msw
Module '"msw"' has no exported member 'rest'.
Expected behavior No errors on the import {rest} from msw line
import {rest} from msw
Additional context I'm guessing the documentation was written when rest was a thing, now http appears to have replaced it.
http
We're in the process of updating the example at https://github.com/testing-library/testing-library-docs/pull/1327
Wonderful! Looking forward to it :)
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
npm i -D msw
Module '"msw"' has no exported member 'rest'.
errorExpected behavior No errors on the
import {rest} from msw
lineAdditional context I'm guessing the documentation was written when
rest
was a thing, nowhttp
appears to have replaced it.