Commit 9085510
fix: unmount editor in ForkYDoc tests to prevent unhandled errors
ProseMirror's DOMObserver timeout fires after jsdom teardown, causing
"document is not defined" ReferenceError. Adding editor.unmount() at
the end of each test ensures proper cleanup.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 73a275c commit 9085510
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| 171 | + | |
| 172 | + | |
167 | 173 | | |
0 commit comments