diff --git a/__tests__/extraction.test.ts b/__tests__/extraction.test.ts index b2cf85d9b..8b07f4a15 100644 --- a/__tests__/extraction.test.ts +++ b/__tests__/extraction.test.ts @@ -4471,6 +4471,31 @@ describe('Razor / Blazor markup extraction', () => { const deps = [...cg.getImpactRadius(svc!.id, 2).nodes.values()].map((n) => n.filePath ?? ''); expect(deps.some((p) => p.endsWith('List.razor')), '@code usage links the component to the service').toBe(true); }); + + it('links inline \n` + ); + + cg = CodeGraph.initSync(tempDir); + await cg.indexAll(); + cg.resolveReferences(); + + const helper = cg.getNodesByKind('function').find((n) => n.name === 'showToast'); + expect(helper, 'showToast function').toBeDefined(); + const deps = [...cg.getImpactRadius(helper!.id, 2).nodes.values()].map((n) => n.filePath ?? ''); + expect(deps.some((p) => p.endsWith('Order.cshtml')), 'inline