| 1567 | it.live("leaves the app's Model and DOM as they are", () => |
| 1568 | Effect.gen(function*() { |
| 1569 | const models = (entries: ReadonlyArray<MessageLog.Wire>) => { |
| 1570 | const paths: { [path: string]: Array<unknown> } = {} |
| 1571 | for (const entry of entries) { |
| 1572 | if (entry._tag === "Update") { |
| 1573 | ;(paths[entry.path] ??= []).push([entry.message, entry.model]) |
| 1574 | } |
| 1575 | } |
| 1576 | return paths |
| 1577 | } |
| 1578 | const encoder = MessageLog.makeEncoder() |
| 1579 | for ( |
| 1580 | const capture of ["interrupted", "open", "closed", "switched"] as const |