Improved Side-by-Side and Compact Diffs for Jest/Vitest Asymmetric Matchers

  01 Jul 2025   1 min read

Wallaby now renders cleaner, more readable diffs for Jest and Vitest tests using asymmetric matchers like expect.any(), expect.objectContaining(), and expect.stringContaining(). Instead of showing verbose raw matcher code, Wallaby displays intuitive labels like Anything<String> or StringContaining "hello" in side-by-side and compact views, making it easier to spot what actually failed without losing access to full actual/expected values for copying or inspection.