Filters
If you want to be selective about which tests run, you can use the --filter option, which can take mutliple values. Each filter should be a regular expression.
- Yarn
- npm
Run yarn betterer --filter my-test to run Betterer with a filter.
Run yarn betterer --filter my-test --filter my-other-test to run Betterer with multiple filters.
Run npm run betterer --filter my-test to run Betterer with a filter.
Run npm run betterer --filter my-test --filter my-other-test to run Betterer with multiple filters.
When running in Watch mode, filters can be updated on the fly by first pressing f, and then modifying the current filter.