Declarative testing of virtual DOM trees • Lightning talk
summary
Claims that a virtual DOM can be represented as a triple functor of type, props and children and that implementing triMap/triApply yields a testable abstraction independent of React internals. Uses an applicative for children (called sip list) to traverse nested arrays, and suggests swapping return types for Either/Maybe for error capture so tests can fold metadata and failures. References Fantasyland and static on as the algebraic specs that make tooling and prop‑based testing straightforward.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:39VDom testing
- 1:16What constitutes the VDOM?
- 1:32Trifunctor
- 1:48Apply
- 2:15Testing Children - ZipList
- 2:35Testing a VDOM
- 3:07Test re-use
- 3:24Easy prop based testing








