I have Jest as my Test Runner. I also have husky in my commit hook. I want to run on every commit, the tests that are affected by my changes and related ones.
I see in the documentation for Jest the following options, but I am not making progress on making them work:
--findRelatedTests -> To find the related test to my changes
--testPathPattern -> To execute tests only on specific folders
Do you have a documentation or any examples that could be helpful. Or explain to me how I could achieve that.? Thanks!!