Skip to content

Commit

Permalink
feat: Add --no-color to cli (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
jereklas committed Aug 15, 2022
1 parent 1314205 commit ec37655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/cli.md
Expand Up @@ -75,6 +75,7 @@ vitest related /src/index.ts /src/hello-world.js
| `--changed [since]` | Run tests that are affected by the changed files (default: false). See [docs](#changed) |
| `--shard <shard>` | Execute tests in a specified shard |
| `--sequence` | Define in what order to run tests. Use [cac's dot notation] to specify options (for example, use `--sequence.shuffle` to run tests in random order) |
| `--no-color` | Removes colors from the console output |
| `-h, --help` | Display available CLI options |

### changed
Expand Down
1 change: 1 addition & 0 deletions packages/vitest/src/node/cli.ts
Expand Up @@ -38,6 +38,7 @@ cli
.option('--shard <shard>', 'Test suite shard to execute in a format of <index>/<count>')
.option('--changed [since]', 'Run tests that are affected by the changed files (default: false)')
.option('--sequence <options>', 'Define in what order to run tests (use --sequence.shuffle to run tests in random order)')
.option('--no-color', 'Removes colors from the console output')
.help()

cli
Expand Down

0 comments on commit ec37655

Please sign in to comment.