Skip to content

Commit

Permalink
docs: deprecate benchmark.outputFile option (#6591)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Sep 30, 2024
1 parent 4ce99b3 commit 891d6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,7 @@ Custom reporter for output. Can contain one or more built-in report names, repor

#### benchmark.outputFile

- **Type:** `string | Record<string, string>`

Write benchmark results to a file when the `--reporter=json` option is also specified.
By providing an object instead of a string you can define individual outputs when using multiple reporters.

To provide object via CLI command, use the following syntax: `--outputFile.json=./path --outputFile.junit=./other-path`.
Deprecated in favor of `benchmark.outputJson`.

#### benchmark.outputJson {#benchmark-outputJson}

Expand Down
3 changes: 1 addition & 2 deletions packages/vitest/src/node/types/benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export interface BenchmarkUserOptions {
reporters?: Arrayable<BenchmarkBuiltinReporters | Reporter>

/**
* Write test results to a file when the `--reporter=json` option is also specified.
* Also definable individually per reporter by using an object instead.
* @deprecated Use `benchmark.outputJson` instead
*/
outputFile?:
| string
Expand Down

0 comments on commit 891d6fe

Please sign in to comment.