skip to Main Content

Reactjs – Why am I receiving the error "module 'msw' has no exported member rest" for my import "import { rest } from 'msw'"

I am following the example here: https://testing-library.com/docs/react-testing-library/example-intro/ At the "Step-By-Step" section under "Imports" it says this: // import dependencies import React from 'react' // import API mocking utilities from Mock Service Worker import {rest} from 'msw' import {setupServer} from 'msw/node'…

VIEW QUESTION
Back To Top
Search