Playing around with msw(mock service worker).
In project root:
npm i
npm run watch
Open two terminals in the api/
folder after running npm i
, in 1 terminal run:
npm run watch
In the other terminal run:
npm run dev
The api will then be listening for requests on 3002.
In project root:
npm run test:watch