Posted inUnit Testing: Jest
How to run tests with Jest from the command line
Jest flags: --watch for Git-tracked changes, --watchAll for all files, --runInBand for serial debugging, --clearCache for errors, --findRelatedTests for specific files. Configure moduleNameMapper for path aliases. Debug with node --inspect-brk. Use jest.useFakeTimers() for timer tests.

