-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Adding possibility to get rid of prototypes from the output #6504
base: main
Are you sure you want to change the base?
Conversation
Adding possibility to get rid of printing prototype in diff output
Added a new configuration option `printBasicPrototype` to the diff section. This allows users to set the pretty-format option for the diff output, with a default value of `true`.
✅ Deploy Preview for vitest-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
#### diff.printBasicPrototype | ||
|
||
- **Type**: `boolean` | ||
- **Default**: `true` | ||
|
||
Allows to set pretty-format option printBasicPrototype for diff output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it already default false
on Vitest? https://vitest.dev/guide/snapshot.html#_2-printbasicprototype-is-default-to-false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, I just notice these two diff.printBasicPrototype
and snapshotFormat.printBasicPrototype
are different things. I think adding this option is okay to start with, but I wonder if we should have these two same as default.
Btw, can you add a test?
Description
simplifies copying output to apply result in unit test
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.