Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwestlake committed Jul 4, 2022
1 parent 8dba057 commit bb25f42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/config/index.md
Expand Up @@ -374,7 +374,7 @@ Glob pattern of file paths to be ignored from triggering watch rerun.
- **Type**: `string[]`
- **Default:** `[]`

Glob patter of file paths that will trigger the whole suite rerun.
Glob patter of file paths that will trigger the whole suite rerun. This paired with the `--changed` argument will run the whole test suite if the trigger is found in the git diff.

Useful if you are testing calling CLI commands, because Vite cannot construct a module graph:

Expand Down
4 changes: 3 additions & 1 deletion docs/guide/cli.md
Expand Up @@ -70,7 +70,7 @@ Clears cache folder.
| `--environment <env>` | Runner environment (default: `node`) |
| `--passWithNoTests` | Pass when no tests found |
| `--allowOnly` | Allow tests and suites that are marked as `only` (default: false in CI, true otherwise) |
| `--changed [since]` | Run tests that are affected by the changed files (default: false). See [docs](#changed) |
| `--changed [since]` | Run tests that are affected by the changed files. (default: false). See [docs](#changed) |
| `--shard <shard>` | Execute tests in a specified shard |
| `-h, --help` | Display available CLI options |

Expand All @@ -83,6 +83,8 @@ Clears cache folder.

To run tests against changes made in the last commit, you can use `--changed HEAD~1`. You can also pass commit hash or branch name.

If paired with the `forceRerunTriggers` config option it will run the whole test suite if a match is found.

### shard

- **Type**: `string`
Expand Down

0 comments on commit bb25f42

Please sign in to comment.