Write Unit Test For React Application. (vitest, Testing-library)
Here we will use the following packages for writing unit tests. Our application will be a react application that uses Tanstak-react-query for API calls.
Vitest
Testing-library
Happy-dom
Mock Server Worker (MSW)
Testing API Calls
In modern web a...
techbuild.hashnode.dev7 min read