Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
test(incremental): account for unsupported TypeScript module extensions
Lum11046de9422a0081
diff --git a/tests/skill/understand/test_incremental_symbols.test.mjs b/tests/skill/understand/test_incremental_symbols.test.mjsindex f9c899bb..ad4a1da0 100644--- a/tests/skill/understand/test_incremental_symbols.test.mjs+++ b/tests/skill/understand/test_incremental_symbols.test.mjs@@ -22,8 +22,11 @@ describe('incremental symbol matching', () => {const filePath = `src/a.${extension}`;const before = parser.analyzeFileStrict(filePath, 'class A { run() {} }');const after = parser.analyzeFileStrict(filePath, 'class A { keep() {} }; A.prototype["r" + "un"] = function() {};');- expect(before.status).toBe('succeeded');- expect(after.status).toBe('succeeded');+ // The built-in language registry does not yet enable .mts/.cts parsing;+ // those extensions must still block instead of implying source deletion.+ const expectedStatus = ['mts', 'cts'].includes(extension) ? 'unsupported' : 'succeeded';+ expect(before.status).toBe(expectedStatus);+ expect(after.status).toBe(expectedStatus);const previous = graph([node('A.run', { filePath, id: `function:${filePath}:A.run` })]);expect(compareFileSymbols(previous, graph([]), before, after).missing[0].status).toBe('unknown');});