FYI, we’re doing HTML snapshot testing in <Redwood...
# test
j
FYI, we’re doing HTML snapshot testing in Redwood. I would love to get this into a standalone library but I haven’t done the work for that yet. Here’s what it looks like!
Copy code
@Test
  fun happyPath() = runTest {
    val helloWorld = document.createElement("div").apply {
      appendElement("h1") {
        appendText("hello world")
      }
    }
    snapshotter.snapshot(helloWorld, "happyPath", Frame.None)
  }
nice spin 2