docs: update doc on option.outputFile (#999)

This commit is contained in:
Zixuan Chen 2022-03-22 12:18:04 +08:00 committed by GitHub
parent 00a1763401
commit c9b49b79ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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`) |

View File

@ -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)')

View File

@ -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