Crash when printing diff of playwright ElementHandle
#7009
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
ElementHandle
#7009
Describe the bug
(related: #7092)
I had an odd error in Vite playground test https://github.com/vitejs/vite/blob/ccee3d7c7d34fc66854029f27f6cc89de7dcf3c5/playground/html/__tests__/html.spec.ts#L187 and this is probably because of diffing (not sure if chai or pretty-format) failing to handle a large cyclic object.
Minimal repro:
Not sure if this is fixable if the object is simply too large, but it's worth investigating this.
Reproduction
https://github.com/hi-ogawa/reproductions/tree/main/vitest-diff-crash-playwright
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: