Skip to content

Commit

Permalink
docs: update doc on option.outputFile (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Mar 22, 2022
1 parent 00a1763 commit c9b49b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ You can specify additional CLI options like `--port` or `--https`. For a full li
| `--threads` | Enable Threads (default: `true`) |
| `--silent` | Silent console output from tests |
| `--isolate` | Isolate environment for each test file (default: `true`) |
| `--reporter <name>` | Select reporter: `default`, `verbose`, `dot` or `json` |
| `--outputFile <filename>` | Write test results to a file when the `--reporter=json` option is also specified |
| `--reporter <name>` | Select reporter: `default`, `verbose`, `dot`, `junit` or `json` |
| `--outputFile <filename>` | Write test results to a file when the `--reporter=json` or `--reporter=junit` option is also specified |
| `--coverage` | Use c8 for coverage |
| `--run` | Do not watch |
| `--mode <name>` | Override Vite mode (default: `test`) |
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cli
.option('--isolate', 'isolate environment for each test file (default: true)')
.option('--reporter <name>', 'reporter')
.option('--outputTruncateLength <length>', 'diff output length')
.option('--outputFile <filename>', 'write test results to a file when the --reporter=json option is also specified')
.option('--outputFile <filename>', 'write test results to a file when the --reporter=json or --reporter=junit option is also specified')
.option('--coverage', 'use c8 for coverage')
.option('--run', 'do not watch')
.option('--mode <name>', 'override Vite mode (default: test)')
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export interface InlineConfig {
outputTruncateLength?: number

/**
* Write test results to a file when the --reporter=json option is also specified
* Write test results to a file when the --reporter=json` or `--reporter=junit` option is also specified.
*/
outputFile?: string

Expand Down

0 comments on commit c9b49b7

Please sign in to comment.