mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-06 02:49:56 +00:00
16 tests covering the data structures and logic underlying each fix: createKnowledgeGraph (loadServerGraph data flow): + nodes stored correctly via addNode + relationships stored correctly via addRelationship + deduplication by ID + nodeCount reflects unique count - empty graph has zero counts - relationships with non-existent nodes still stored loadServerGraph data flow: + server data reconstructs into valid KnowledgeGraph + fileContents Map built from server entries - empty server data produces empty graph - fileContents replaces (not accumulates) on reload BM25 index argument type: + Map<string, string> has entries() for BM25 - KnowledgeGraph does NOT have entries() (the original bug) Highlight clearing: + clearing Set produces empty set + independent highlight sources cleared separately - clearing highlights doesn't affect node selection - toggling AI ON doesn't clear process highlights Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
371 B
TypeScript
17 lines
371 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['test/setup.ts'],
|
|
include: ['test/**/*.test.ts'],
|
|
exclude: ['**/node_modules/**', '**/dist/**'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
});
|