@@ -127,6 +127,7 @@ describe("file-entry-cache with options", () => {
127127 fs . writeFileSync ( testFile , "initial content" ) ;
128128
129129 const fileEntryCache = new FileEntryCache ( {
130+ // @ts -expect-error as test
130131 logger,
131132 useCheckSum : true ,
132133 } ) ;
@@ -223,6 +224,7 @@ describe("file-entry-cache with options", () => {
223224 fs . writeFileSync ( testFile , "initial content" ) ;
224225
225226 const fileEntryCache = new FileEntryCache ( {
227+ // @ts -expect-error
226228 logger,
227229 useCheckSum : false , // Disable checksum to use mtime
228230 } ) ;
@@ -720,6 +722,7 @@ describe("normalizeEntries()", () => {
720722 test ( "should return all entries" , ( ) => {
721723 const fileEntryCache = new FileEntryCache ( {
722724 useCheckSum : true ,
725+ useAbsolutePathAsKey : false ,
723726 } ) ;
724727 fileEntryCache . getFileDescriptor ( `./${ fileCacheName } /test1.txt` ) ;
725728 fileEntryCache . getFileDescriptor ( `./${ fileCacheName } /test2.txt` ) ;
@@ -906,7 +909,9 @@ describe("getUpdatedFiles()", () => {
906909 } ) ;
907910
908911 test ( "should return empty array on get updated files" , ( ) => {
909- const fileEntryCache = new FileEntryCache ( ) ;
912+ const fileEntryCache = new FileEntryCache ( {
913+ useAbsolutePathAsKey : false ,
914+ } ) ;
910915 const files = [
911916 `./${ fileCacheName } /test1.txt` ,
912917 `./${ fileCacheName } /test2.txt` ,
@@ -920,7 +925,9 @@ describe("getUpdatedFiles()", () => {
920925 } ) ;
921926
922927 test ( "should return updated files if one is updated" , ( ) => {
923- const fileEntryCache = new FileEntryCache ( ) ;
928+ const fileEntryCache = new FileEntryCache ( {
929+ useAbsolutePathAsKey : false ,
930+ } ) ;
924931 const files = [
925932 `./${ fileCacheName } /test1.txt` ,
926933 `./${ fileCacheName } /test2.txt` ,
@@ -1041,7 +1048,9 @@ describe("getFileDescriptorsByPath()", () => {
10411048 } ) ;
10421049
10431050 test ( "should return an array of file descriptors" , ( ) => {
1044- const fileEntryCache = new FileEntryCache ( ) ;
1051+ const fileEntryCache = new FileEntryCache ( {
1052+ useAbsolutePathAsKey : false ,
1053+ } ) ;
10451054 fileEntryCache . getFileDescriptor ( `./${ fileCacheName } /test1.txt` ) ;
10461055 fileEntryCache . getFileDescriptor ( `./${ fileCacheName } /test2.txt` ) ;
10471056 const fileDescriptors = fileEntryCache . getFileDescriptorsByPath (
0 commit comments