Better Phoenix function components tests with ~H sigil

There are 2 ways to test Phoenix function components:

  • render_component/3
  • rendered_to_string/1 + ~H sigil

Use the second one every time!

So much nicer ergonomics and allows us to test more complex components (e.g. with slots). 🥳

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.