Gleaming Wails: Snapshot testing Gleam & Lustre UI for Wails with Birdie | Always Developing #256

Live coding an app with Gleam, Lustre, Go and Wails.

In this session I get snapshot testing working for the Go & Wails based Snippet Expander app’s UI built with Gleam & Lustre.
I add the Birdie package for performing snapshot testing of the Gleam & Lustre code, and end up refactoring the JavaScript FFI code that hooks into the Wails backend to get around some issues with running the tests.

Snippet Expander:- https://snippetexpander.org

Source Code: https://git.sr.ht/~ianmjones/snippetexpander

Always Developing Playlist:- https://www.youtube.com/playlist?list=PLDWtdmaxq1few8CjnK4MC3LLBMVpi_aCS

Blog:- https://ianmjones.com
Mastodon:- https://fosstodon.org/@ianmjones

Tech Used:
Gleam:- https://gleam.run
Lustre:- https://hexdocs.pm/lustre
Go:- https://golang.org
Wails:- https://wails.io