File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments