Change8

v4.0.0-beta.18

📦 vitestView on GitHub →
5 features🐛 3 fixes🔧 8 symbols

Summary

Vitest v4.0.0-beta.18 introduces new expect.assert narrowing, github-options annotations, schema matchers, content dumping, and custom screenshot comparison, while fixing exports for Playwright CDP, browser utils, and adding AbortSignal support in jsdom.

✨ New Features

  • Support expect.assert for type narrowing
  • Add displayAnnotations option to github-options
  • Add schema validation matchers
  • Add a way to dump transformed content
  • browser: Support custom screenshot comparison algorithms

🐛 Bug Fixes

  • Re-export CDP Session directly from playwright
  • browser: Define an export for browser/utils
  • jsdom: Support AbortSignal API

🔧 Affected Symbols

expect.assertgithub-options.displayAnnotationsschema.validateMatchertransformer.dumpContentbrowser.screenshotComparisonplaywright.CDPSessionbrowser/utilsjsdom.AbortSignal