11import assert from 'assert' ;
22import { Uri } from 'vscode' ;
3+ import { PythonProject } from '../../api' ;
34import { PythonProjectManagerImpl } from '../../features/projectManager' ;
45
56suite ( 'Project Manager Update URI tests' , ( ) => {
@@ -24,7 +25,7 @@ suite('Project Manager Update URI tests', () => {
2425 } ) ;
2526
2627 // Access private _projects map to manually add the project for testing
27- ( projectManager as any ) . _projects . set ( oldUri . toString ( ) , project ) ;
28+ ( projectManager as unknown as { _projects : Map < string , PythonProject > } ) . _projects . set ( oldUri . toString ( ) , project ) ;
2829
2930 // Verify project exists with old URI
3031 const oldProject = projectManager . get ( oldUri ) ;
@@ -71,8 +72,9 @@ suite('Project Manager Update URI tests', () => {
7172 const project2 = projectManager . create ( 'Project2' , project2Uri ) ;
7273
7374 // Access private _projects map to manually add projects for testing
74- ( projectManager as any ) . _projects . set ( project1Uri . toString ( ) , project1 ) ;
75- ( projectManager as any ) . _projects . set ( project2Uri . toString ( ) , project2 ) ;
75+ const pmWithPrivateAccess = projectManager as unknown as { _projects : Map < string , PythonProject > } ;
76+ pmWithPrivateAccess . _projects . set ( project1Uri . toString ( ) , project1 ) ;
77+ pmWithPrivateAccess . _projects . set ( project2Uri . toString ( ) , project2 ) ;
7678
7779 // Verify both projects exist
7880 assert . ok ( projectManager . get ( project1Uri ) , 'Project1 should exist' ) ;
0 commit comments