Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a basic mutation observer

+5 -1
+5 -1
test/something.test.js
··· 2 2 import { morph } from "../"; 3 3 4 4 describe("my-test", () => { 5 - it("works", async () => { 5 + it.only("works", async () => { 6 6 const a = await fixture(html`<h1></h1>`); 7 7 const b = await fixture(html`<h1>Hello</h1>`); 8 + 9 + new MutationObserver(() => { 10 + throw new Error("The to node was mutated."); 11 + }).observe(b, { attributes: true, childList: true, subtree: true }); 8 12 9 13 morph(a, b); 10 14