I trying to do unit testing in a react application in which I want to test only one component.
What is the command for running the test of particular component?
I am doing this way for testing.
npm test -- --testPathPattern components
I have all the *.test.js inside the components folder.
Above command will run the test cases for all the test files under the components folder but I want to run the tests only for the specific component.