I don’t do unit testing on personal projects … just because
However for previous jobs I’ve used jest/vitest and Babylon NullEngine.
Once you’ve instantiated Babylon with NullEngine in your test files, you can simply modify and interrogate the scene graph to ensure nodes, structure and properties change as expected.
Note that I asked about end-to-end rather than unit testing.
Manly because visual things can easily pass unit tests, and E2E frameworks save screenshots or record videos of everything.
And also, folks doing web apps tend to use some E2E framework already, like playwright, cypress, etc.Because they need to test their UI logic and business logic both, both client-side and server-side.
Here, a specific example. I had this bug for months, at least, and I wonder since when