@@ -630,69 +630,69 @@ export const x = 10;`
630
630
describe ( "unittests:: tsserver:: resolutionCache:: tsserverProjectSystem with project references" , ( ) => {
631
631
it ( "sharing across references" , ( ) => {
632
632
const host = createServerHost ( {
633
- "/src /projects/node_modules/moduleX/index.d.ts" : "export const x = 10;" ,
634
- "/src /projects/common/tsconfig.json" : JSON . stringify ( {
633
+ "/users/username /projects/node_modules/moduleX/index.d.ts" : "export const x = 10;" ,
634
+ "/users/username /projects/common/tsconfig.json" : JSON . stringify ( {
635
635
compilerOptions : compilerOptionsToConfigJson ( {
636
636
composite : true ,
637
637
traceResolution : true ,
638
638
} ) ,
639
639
} ) ,
640
- "/src /projects/common/moduleA.ts" : "export const a = 10;" ,
641
- "/src /projects/common/moduleB.ts" : Utils . dedent `
640
+ "/users/username /projects/common/moduleA.ts" : "export const a = 10;" ,
641
+ "/users/username /projects/common/moduleB.ts" : Utils . dedent `
642
642
import { x } from "moduleX";
643
643
export const b = x;
644
644
` ,
645
- "/src /projects/app/tsconfig.json" : JSON . stringify ( {
645
+ "/users/username /projects/app/tsconfig.json" : JSON . stringify ( {
646
646
compilerOptions : compilerOptionsToConfigJson ( {
647
647
composite : true ,
648
648
traceResolution : true ,
649
649
} ) ,
650
650
references : [ { path : "../common" } ] ,
651
651
} ) ,
652
- "/src /projects/app/appA.ts" : Utils . dedent `
652
+ "/users/username /projects/app/appA.ts" : Utils . dedent `
653
653
import { x } from "moduleX";
654
654
export const y = x;
655
655
` ,
656
- "/src /projects/app/appB.ts" : Utils . dedent `
656
+ "/users/username /projects/app/appB.ts" : Utils . dedent `
657
657
import { x } from "../common/moduleB";
658
658
export const y = x;
659
659
` ,
660
660
} ) ;
661
661
const session = createSession ( host , { logger : createLoggerWithInMemoryLogs ( host ) } ) ;
662
- openFilesForSession ( [ "/src /projects/app/appB.ts" ] , session ) ;
662
+ openFilesForSession ( [ "/users/username /projects/app/appB.ts" ] , session ) ;
663
663
baselineTsserverLogs ( "resolutionCache" , "sharing across references" , session ) ;
664
664
} ) ;
665
665
666
666
it ( "not sharing across references" , ( ) => {
667
667
const host = createServerHost ( {
668
- "/src /projects/node_modules/moduleX/index.d.ts" : "export const x = 10;" ,
669
- "/src /projects/common/tsconfig.json" : JSON . stringify ( {
668
+ "/users/username /projects/node_modules/moduleX/index.d.ts" : "export const x = 10;" ,
669
+ "/users/username /projects/common/tsconfig.json" : JSON . stringify ( {
670
670
compilerOptions : { composite : true , traceResolution : true } ,
671
671
} ) ,
672
- "/src /projects/common/moduleA.ts" : "export const a = 10;" ,
673
- "/src /projects/common/moduleB.ts" : Utils . dedent `
672
+ "/users/username /projects/common/moduleA.ts" : "export const a = 10;" ,
673
+ "/users/username /projects/common/moduleB.ts" : Utils . dedent `
674
674
import { x } from "moduleX";
675
675
export const b = x;
676
676
` ,
677
- "/src /projects/app/tsconfig.json" : JSON . stringify ( {
677
+ "/users/username /projects/app/tsconfig.json" : JSON . stringify ( {
678
678
compilerOptions : {
679
679
composite : true ,
680
680
traceResolution : true ,
681
681
typeRoots : [ ] , // Just some sample option that is different across the projects
682
682
} ,
683
683
references : [ { path : "../common" } ] ,
684
684
} ) ,
685
- "/src /projects/app/appA.ts" : Utils . dedent `
685
+ "/users/username /projects/app/appA.ts" : Utils . dedent `
686
686
import { x } from "moduleX";
687
687
export const y = x;
688
688
` ,
689
- "/src /projects/app/appB.ts" : Utils . dedent `
689
+ "/users/username /projects/app/appB.ts" : Utils . dedent `
690
690
import { x } from "../common/moduleB";
691
691
export const y = x;
692
692
` ,
693
693
} ) ;
694
694
const session = createSession ( host , { logger : createLoggerWithInMemoryLogs ( host ) } ) ;
695
- openFilesForSession ( [ "/src /projects/app/appB.ts" ] , session ) ;
695
+ openFilesForSession ( [ "/users/username /projects/app/appB.ts" ] , session ) ;
696
696
baselineTsserverLogs ( "resolutionCache" , "not sharing across references" , session ) ;
697
697
} ) ;
698
698
} ) ;
0 commit comments