You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/config/index.md
+18-52
Original file line number
Diff line number
Diff line change
@@ -449,58 +449,24 @@ Custom reporters for output. Reporters can be [a Reporter instance](https://gith
449
449
-`'hanging-process'` - displays a list of hanging processes, if Vitest cannot exit process safely. This might be a heavy operation, enable it only if Vitest consistently cannot exit process
450
450
- path of a custom reporter (e.g. `'./path/to/reporter.ts'`, `'@scope/reporter'`)
Truncate the size of diff line up to `stdout.columns` or `80` number of characters. You may wish to tune this, depending on your terminal window width. Vitest includes `+-` characters and spaces for this. For example, you might see this diff, if you set this to `6`:
Limit the number of single output diff lines up to `15`. Vitest counts all `+-` lines when determining when to stop. For example, you might see diff like this, if you set this property to `3`:
The maximum number of lines to display in diff window. Beware that if you have a large object with many small diffs, you might not see all of them at once.
The maximum length of the stringified object before the diff happens. Vitest tries to stringify an object before doing a diff, but if the object is too large, it will reduce the depth of the object to fit within this limit. Because of this, if the object is too big or nested, you might not see the diff.
502
-
503
-
Increasing this limit can increase the duration of diffing.
Limit the number of single output diff lines up to `15`. Vitest counts all `+-` lines when determining when to stop. For example, you might see diff like this, if you set this property to `3`:
Copy file name to clipboardexpand all lines: docs/guide/cli.md
-3
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,6 @@ Run only [benchmark](https://vitest.dev/guide/features.html#benchmarking-experim
73
73
|`--silent`| Silent console output from tests |
74
74
|`--isolate`| Isolate environment for each test file (default: `true`) |
75
75
|`--reporter <name>`| Select reporter: `default`, `verbose`, `dot`, `junit`, `json`, or a path to a custom reporter |
76
-
|`--outputDiffMaxSize <length>`| Object diff output max size (default: 10000) |
77
-
|`--outputDiffMaxLines <lines>`| Max lines in diff output window (default: 50) |
78
-
|`--outputTruncateLength <length>`| Truncate output diff lines up to `<length>` number of characters. |
79
76
|`--outputDiffLines <lines>`| Limit number of output diff lines up to `<lines>`. |
80
77
|`--outputFile <filename/-s>`| Write test results to a file when the `--reporter=json` or `--reporter=junit` option is also specified <br /> Via [cac's dot notation] you can specify individual outputs for multiple reporters |
consthelperBunner=linesAfter&&(counts['+']+counts['-']>outputDiffLines) ? `\n Use ${c.gray('test.outputDiffLines')} to increase the number of lines shown.` : ''
Copy file name to clipboardexpand all lines: packages/vitest/src/node/cli.ts
-3
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,6 @@ cli
25
25
.option('--silent','Silent console output from tests')
26
26
.option('--isolate','Isolate environment for each test file (default: true)')
27
27
.option('--reporter <name>','Specify reporters')
28
-
.option('--outputDiffMaxSize <length>','Object diff output max size (default: 10000)')
29
-
.option('--outputDiffMaxLines <length>','Max lines in diff output window (default: 50)')
30
-
.option('--outputTruncateLength <length>','Diff output line length (default: 80)')
31
28
.option('--outputDiffLines <lines>','Number of lines in single diff (default: 15)')
32
29
.option('--outputFile <filename/-s>','Write test results to a file when supporter reporter is also specified, use cac\'s dot notation for individual outputs of multiple reporters')
console.error(dim('Could not display diff. It\'s possible objects are too large to compare.\nTry increasing ')+black('--outputDiffMaxSize')+dim(' option.\n'))
0 commit comments