-
-
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
toMatch output is truncated #2791
Comments
|
But I think you can change it with this code: import { chai } from 'vitest'
chai.config.truncateThreshold = 100000 We might need to add to the config or reuse another truncate flag. |
Yes, looks like this is working 👍 I still would love to have a vitest config pass-through option for that Maybe even: export default defineConfig({
test: {
coverage: {
all: true,
// ...
},
reporters: 'basic',
// ...
chaiConfig: {
truncateThreshold: 10000,
}
},
}); |
Describe the bug
While using e.g.
toMatch
the expected result is truncated even when settingoutputTruncateLength
to 1000It might be somewhat related to #2448
But there is no expected vs actual comparison/diff, so it's harder here to find the problem of the failing test
Reproduction
will add if really needed
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: