Heyya Testing Library Reaches Key Release Milestone

39
clicks
Heyya Testing Library Reaches Key Release Milestone

Source: batteriesincl.com

Type: Post

Batteries Included has announced that their open-source testing library 'Heyya' has reached version 1.0.0. This release includes a notable new feature: snapshot testing for LiveViews, expanding beyond just component testing. The blog post explains how Heyya can be utilized for testing Phoenix components effortlessly by combining Phoenix.LiveViewTest and Floki, inspired by React’s Jest. The post provides code examples and guidance on how to implement these tests. Additional features cover support for testing both stateless and stateful components, as well as full-page LiveView testing, using Heyya.ComponentCase and Heyya.SnapshotCase respectively.

© HashMerge 2024