Skip to content

Commit

Permalink
docs: correction
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Dec 10, 2024
1 parent 23602f0 commit 2ad4d6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/advanced/api/vitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ This method can be slow because it needs to filter `--changed` flags. Do not use
function mergeReports(directory?: string): Promise<TestRunResult>
```

Merge reports from multiple runs located in the specified directory (`--merge-reports` if not specified). This value can also be set on `config.mergeReports` (by default, it will read `.vitest-reports` folder).
Merge reports from multiple runs located in the specified directory (value from `--merge-reports` if not specified). This value can also be set on `config.mergeReports` (by default, it will read `.vitest-reports` folder).

Note that the `directory` will always be resolved relative to the working directory.

Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cli/cli-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ export const cliOptionsConfig: VitestCLIOptions = {
},
mergeReports: {
description:
'Paths to blob reports directory. If this options is used, Vitest won\'t run any tests, it will only report previously recorded tests',
'Path to a blob reports directory. If this options is used, Vitest won\'t run any tests, it will only report previously recorded tests',
argument: '[path]',
transform(value) {
if (!value || typeof value === 'boolean') {
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export class Vitest {
}

/**
* Merge reports from multiple runs located in the specified directory (`--merge-reports` by default).
* Merge reports from multiple runs located in the specified directory (value from `--merge-reports` if not specified).
*/
public async mergeReports(directory?: string): Promise<TestRunResult> {
if (this.reporters.some(r => r instanceof BlobReporter)) {
Expand Down

0 comments on commit 2ad4d6f

Please sign in to comment.