Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New --ouputDiffLines cli flag #1446

Merged
merged 2 commits into from Jun 8, 2022
Merged

Conversation

Dragomir-Ivanov
Copy link
Contributor

Using this flag enables me to see whole objects/arrays I am testing, allowing me to copy/paste them.

Also adds documentation for previous feature --outputTruncateLength

@netlify
Copy link

netlify bot commented Jun 6, 2022

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a56b036
🔍 Latest deploy log https://app.netlify.com/sites/vitest-dev/deploys/629f04771fd2eb0009f5911e
😎 Deploy Preview https://deploy-preview-1446--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sheremet-va sheremet-va linked an issue Jun 7, 2022 that may be closed by this pull request
6 tasks
Copy link
Member

@sheremet-va sheremet-va left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍🏻 But left some notes for docs

Limit number of output diff lines up to `15`. You may wish to tune this, to see output
for larger objects/arrays.

To provide object via CLI command, use the following syntax: `--outputDiffLines=100`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what object? 😄

I think you've taken it from outputFile command, where it's possible to provide object via CLI, but here it' just a number. I would remove this line and on :248

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant, I could see whole objects/arrays in the Diff output, not that objects can be supplied to the cli flag. I will make it clear. Thanks!

Use this flag in order to control how many lines are printed,
on each diff.
@sheremet-va sheremet-va merged commit 0b8a5bc into vitest-dev:main Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

outputTruncateLength is not documented
2 participants