(text: string)
| 111 | } |
| 112 | |
| 113 | function createComment(text: string): TestComment { |
| 114 | const node: TestComment = { |
| 115 | id: nodeId++, |
| 116 | type: TestNodeTypes.COMMENT, |
| 117 | text, |
| 118 | parentNode: null, |
| 119 | } |
| 120 | logNodeOp({ |
| 121 | type: NodeOpTypes.CREATE, |
| 122 | nodeType: TestNodeTypes.COMMENT, |
| 123 | targetNode: node, |
| 124 | text, |
| 125 | }) |
| 126 | // avoid test nodes from being observed |
| 127 | markRaw(node) |
| 128 | return node |
| 129 | } |
| 130 | |
| 131 | function setText(node: TestText, text: string): void { |
| 132 | logNodeOp({ |
no test coverage detected