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

Function tsx

__tests__/frameworks.test.ts:320–321  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

318
319 it('a self-closing JSX tag after an attribute, and division after `}`, are not regexes', () => {
320 const tsx = (src: string) =>
321 expressResolver.extract!('server.tsx', src).references.map((r) => `${r.referenceKind}:${r.referenceName}`);
322 expect(tsx(`app.get('*', (req, res) => {\n const html = renderToString(<App store={store} />);\n sendPage(res, html);\n});\n`)).toEqual(
323 expect.arrayContaining(['calls:renderToString', 'calls:sendPage'])
324 );

Callers 1

frameworks.test.tsFile · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected