()
| 229 | it('draws the render link when a sync turns a wrapper in a file with no markup onto a component', async () => { |
| 230 | const db = await index(); |
| 231 | const wrapped = () => |
| 232 | db |
| 233 | .prepare( |
| 234 | `SELECT s.name src, t.name dst FROM edges e JOIN nodes s ON s.id = e.source JOIN nodes t ON t.id = e.target |
| 235 | WHERE json_extract(e.metadata, '$.wrapped') = 1 AND s.name = 'Bare'` |
| 236 | ) |
| 237 | .all() |
| 238 | .map((r: any) => `${r.src}>${r.dst}`); |
| 239 | expect(wrapped()).toEqual([]); |
| 240 | // No markup, no synthesized edge and the same component names before and |
| 241 | // after: only the wrapper itself says the JSX edges need redrawing. |
no test coverage detected