Skip to content

Commit

Permalink
docs: clarify vitest related
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Aug 7, 2022
1 parent 33b5f83 commit 0ae8e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Alias to `vitest watch`.

### `vitest related`

Run only tests that cover a list of source files. Works with static lazy imports, but not the dynamic ones. All files should be relative to root folder.
Run only tests that cover a list of source files. Works with static imports (e.g., `import('./index.ts')` or `import index from './index.ts`), but not the dynamic ones (e.g., `import(filepath)`). All files should be relative to root folder.

Useful to run with [`lint-staged`](https://github.com/okonet/lint-staged) or with your CI setup.

Expand Down

0 comments on commit 0ae8e19

Please sign in to comment.