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

Function forms

__tests__/dynamic-boundaries.test.ts:447–448  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

445
446describe('scanDynamicDispatch — dynamic import arguments (#1967)', () => {
447 const forms = (body: string): string[] =>
448 scanDynamicDispatch(body, 'typescript', 1).map((m) => m.form);
449
450 it('flags an import built from a template literal with a substitution', () => {
451 expect(forms('async function load(lang) {\n return import(`./locales/${lang}.js`);\n}')).toEqual(['dynamic-import']);

Callers 1

Calls 2

scanDynamicDispatchFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected