Skip to content
Merged
1 change: 0 additions & 1 deletion src/domain/analysis/impact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
* - presentation/diff-impact-mermaid.ts: diffImpactMermaid (Mermaid diagram generation)
*/

export { diffImpactMermaid } from '../../presentation/diff-impact-mermaid.js';
export { diffImpactData } from './diff-impact.js';
export { bfsTransitiveCallers, fnImpactData, impactAnalysisData } from './fn-impact.js';
2 changes: 1 addition & 1 deletion src/domain/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

// ── Re-export from dedicated module for backward compat ───────────────────
export { isTestFile, TEST_PATTERN } from '../infrastructure/test-filter.js';
export { diffImpactMermaid } from '../presentation/diff-impact-mermaid.js';
export { iterListFunctions, iterRoles, iterWhere } from '../shared/generators.js';
// ── Kind/edge constants (canonical source: kinds.js) ─────────────────────
export {
Expand All @@ -28,7 +29,6 @@ export { fileDepsData, fnDepsData, pathData } from './analysis/dependencies.js';
export { exportsData } from './analysis/exports.js';
export {
diffImpactData,
diffImpactMermaid,
fnImpactData,
impactAnalysisData,
} from './analysis/impact.js';
Expand Down
2 changes: 2 additions & 0 deletions src/features/structure-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ function getSortFn(sortBy: string): (a: DirRow, b: DirRow) => number {
const db_ = (b.file_count ?? 0) > 0 ? (b.symbol_count || 0) / (b.file_count ?? 1) : 0;
return db_ - da;
};
case 'files':
return (a, b) => (b.file_count || 0) - (a.file_count || 0);
default:
return (a, b) => a.name.localeCompare(b.name);
}
Expand Down
1 change: 1 addition & 0 deletions tests/unit/visitor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { describe, expect, it } from 'vitest';

// We need a tree-sitter tree to test. Use the JS parser.
// biome-ignore lint/suspicious/noExplicitAny: tree-sitter parser type is complex and not worth typing for tests
let parse: any;

async function ensureParser() {
Expand Down
Loading