- Muchas notas - Fran Acién

20220602 - Run only one test with jest

You can pass the file to test with jest as an argument.

jest FILETOTEST.ts

In my case, I have defined test as a command in the package.js. To run a single file test it would be:

$ npm run test -- FILE.test.ts