MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / wrapped

Function wrapped

__tests__/react-wrapper-initializers.test.ts:231–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Calls 3

mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected