← All happo for npm releases

happo for npm release notes

The happo npm package: the CLI and its Storybook, Cypress, Playwright, and Vitest integrations.

7.1.0Vitest Browser Mode integration

This release adds support for taking snapshots from Testing Library tests run under Vitest Browser Mode, along with smaller fixes.

Added

  • Add a Vitest Browser Mode integration: use happoVitestPlugin() and happoScreenshot() from happo/vitest and happo/vitest/browser to send snapshots from Testing Library tests, with support for targets, dynamic targets, snapshotStrategy, --skip, and autoApplyPseudoStateAttributes [by @trotzig in #308]

Changed

  • Default autoApplyPseudoStateAttributes to true in the Vitest integration, matching the Cypress and Playwright integrations, so hover and focus attributes apply by default [by @lencioni in #763]

Fixed

  • Stop reporting write EPIPE errors to the error tracker and failing the exit code when whatever reads the CLI's stdout disconnects mid-run [by @lencioni in #748]
  • Update the "Missing apiKey and apiSecret" error message to link directly to the API tokens page at <endpoint>/api-tokens instead of /settings [by @trotzig in #768]

Need help?