Heyya -- Snapshot testing for Phoenix Components

Heyya is a library to help with testing your Phoenix components. It allows for writing fast tests that assert your HTML is consistent and correct. Specifically, Heyya is designed to work with many functional components and the latest Phoenix and LiveView releases. As your code changes and mutates, tests can change quickly without writing new assertions each time.

There’s a blog post up with example code and integration help here:

https://www.batteriesincl.com/posts/heyya-snapshot-testing

Hex Docs are here:

https://hexdocs.pm/heyya/readme.html

If you’ve ever used React snapshot testing, Heyya will feel very similar.

12 Likes