Answers for "create react app run test apecific folfer"

0

create react app run test apecific folfer

So, to run a single test in a create-react-app application, I run the following:
npm run test -- -t 'test-name'

Where test-name is the value used in the describe function in jest -
describe('test-name', () => {
  it('does something', () => { ... });
});
  
Also you can use the name of the file in the command, and it will run only it.
npm test src/components/App.test.js
Posted by: Guest on June-03-2021

Code answers related to "create react app run test apecific folfer"

Code answers related to "Javascript"

Browse Popular Code Answers by Language