jest how to run single file code example Example: run jest on single file npm test -- --testFile "file-name-part"