What is your minimum test setup for a stateful component?

I am sure if this could be useful, maybe you can use this as a starting point.
https://github.com/eksperimental/lean_phoenix_server

you will have to add LiveView