-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
toEqual output is truncated #3762
Comments
Hello @PupoSDC. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Thank you for your reply. Our setup was missing the following config on export default defineConfig(() => {
return test {
outputTruncateLength: 10000,
outputDiffLines: 100000,
}
} It appears that by default no diff is generated. Thank you! |
Both of these options are not supported by Vitest for some time now. |
So what Options should I set? These 2 seem to work on Which is supposed to be the correct set of options for this version? |
There are no options for diff. It should just work, and it works without any options in linked reproduction. |
@Mouvedia Check if you are running the latest vite ( |
I am using version 0.33.0. |
Describe the bug
This is a follow up to #2448 Since I simply don't understand the solution being proposed.
Here is the output i see on my console:
Here is the output from Jest, which is more or less what I was expecting to see:
How can i make it so that the full diff between the provided and expected value is shown on the console?
Reproduction
In this repo there's a test called it demonstrates toEqual output is truncated in ApiCaller.test.ts that shows the problem.
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: