Skip to content

Commit 2e02165

Browse files
committed
feat(map): bound default output and full context
1 parent f5c3d3b commit 2e02165

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/codebase-map.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,9 @@ describe('buildCodebaseMap', () => {
384384
boundedMap.architecture.hotspots.length
385385
);
386386
expect(boundedMap.bestExamples).toHaveLength(BOUNDED_LIMITS.bestExamples);
387-
expect(fullMap.bestExamples.some((example) => example.file === 'tests/codebase-map.test.ts')).toBe(true);
387+
expect(
388+
fullMap.bestExamples.some((example) => example.file === 'tests/codebase-map.test.ts')
389+
).toBe(true);
388390
expect(fullMap.bestExamples.some((example) => example.file === 'dist/index.js')).toBe(true);
389391
expect(fullMap.architecture.layers.map((layer) => layer.name)).toEqual(
390392
expect.arrayContaining(['dist', 'tests', 'vendor'])
@@ -398,7 +400,7 @@ describe('buildCodebaseMap', () => {
398400
const project = createProjectState(CURRENT_REPO_ROOT);
399401
const map = await buildCodebaseMap(project);
400402

401-
expect(map.project).toBe('codebase-context');
403+
expect(map.project).toBe(path.basename(CURRENT_REPO_ROOT));
402404
expect(map.architecture.layers.map((layer) => layer.name)).not.toContain('tests');
403405
expect(map.architecture.layers.map((layer) => layer.name)).not.toContain('dist');
404406
expect(map.architecture.entrypoints.length).toBeLessThanOrEqual(8);

0 commit comments

Comments
 (0)