-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Describe the bug
When running a test to check the equality of two objects, the output is truncated if there are more than 2 properties.
I.e. the output looks like this:
AssertionError: expected { hello: 'world', …(3) } to deeply equal { hello: 'world', …(2) }
Which means it's not possible to establish what was wrong.
I wondered if setting this might help but it doesn't seem to make a difference here
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
"vite": "3.2.5",
"vitest": "0.25.4",
System:
OS: macOS 12.6.1
CPU: (10) arm64 Apple M1 Pro
Memory: 814.89 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn
npm: 9.1.3 - ~/.nvm/versions/node/v18.12.1/bin/npm
Browsers:
Brave Browser: 108.1.46.134
Chrome: 108.0.5359.94
Edge: 108.0.1462.41
Firefox Developer Edition: 108.0
Safari: 16.1
"vite": "3.2.5",
"vitest": "0.25.4",Used Package Manager
yarn
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels