Mocha --grep with --retries: filter once up front or re-apply the pattern on every retry?
I'm designing a CI job that runs a subset of a Mocha suite using --grep to match test descriptions, combined with --retries to absorb flaky failures. The goal is a single command that runs only the matching tests and retries only those same tests when they fail. The uncertainty is how the two flags interact. My understanding is that Mocha re-applies the grep