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
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