I'm working on a project that recently implemented Rush. We're using Heft as a test runner, so the main test command is heft test.
The problem is, no one knows how to only test one file. I tried using it with the --locale flag as well as with the -t REGEXP flag, but to no avail.
Any idea what the secret sauce is?
e.g.
src/apps/dashboard/components/Button/Button.test.tsx
# Jest syntax for testing one file / regexp except for heft
heft test -- button
Not sure which version of Heft you are using, but I do not have Heft installed globally, so I use
npxto use the version I have locally.This works for me with heft
0.47.9: