@@ -3,6 +3,7 @@ import {fileURLToPath} from "node:url";
33import path from "node:path" ;
44import sinonGlobal from "sinon" ;
55import esmock from "esmock" ;
6+ import CacheMode from "../../../lib/ui5Framework/maven/CacheMode.js" ;
67
78const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
89const fixturesPath = path . join ( __dirname , ".." , ".." , "fixtures" ) ;
@@ -57,7 +58,8 @@ test.serial("graphFromPackageDependencies", async (t) => {
5758 cwd : "cwd" ,
5859 rootConfiguration : "rootConfiguration" ,
5960 rootConfigPath : "/rootConfigPath" ,
60- versionOverride : "versionOverride"
61+ versionOverride : "versionOverride" ,
62+ cacheMode : CacheMode . Off
6163 } ) ;
6264
6365 t . is ( res , "graph" ) ;
@@ -81,7 +83,8 @@ test.serial("graphFromPackageDependencies", async (t) => {
8183 "enrichProjectGraph got called with graph" ) ;
8284 t . deepEqual ( enrichProjectGraphStub . getCall ( 0 ) . args [ 1 ] , {
8385 versionOverride : "versionOverride" ,
84- workspace : undefined
86+ workspace : undefined ,
87+ cacheMode : "Off"
8588 } , "enrichProjectGraph got called with correct options" ) ;
8689} ) ;
8790
@@ -98,6 +101,7 @@ test.serial("graphFromPackageDependencies with workspace name", async (t) => {
98101 rootConfigPath : "/rootConfigPath" ,
99102 versionOverride : "versionOverride" ,
100103 workspaceName : "dolphin" ,
104+ cacheMode : CacheMode . Off
101105 } ) ;
102106
103107 t . is ( res , "graph" ) ;
@@ -128,7 +132,8 @@ test.serial("graphFromPackageDependencies with workspace name", async (t) => {
128132 "enrichProjectGraph got called with graph" ) ;
129133 t . deepEqual ( enrichProjectGraphStub . getCall ( 0 ) . args [ 1 ] , {
130134 versionOverride : "versionOverride" ,
131- workspace : "workspace"
135+ workspace : "workspace" ,
136+ cacheMode : "Off"
132137 } , "enrichProjectGraph got called with correct options" ) ;
133138} ) ;
134139
@@ -225,6 +230,7 @@ test.serial("graphFromPackageDependencies with empty workspace", async (t) => {
225230 rootConfigPath : "/rootConfigPath" ,
226231 versionOverride : "versionOverride" ,
227232 workspaceName : "dolphin" ,
233+ cacheMode : CacheMode . Off
228234 } ) ;
229235
230236 t . is ( res , "graph" ) ;
@@ -255,7 +261,8 @@ test.serial("graphFromPackageDependencies with empty workspace", async (t) => {
255261 "enrichProjectGraph got called with graph" ) ;
256262 t . deepEqual ( enrichProjectGraphStub . getCall ( 0 ) . args [ 1 ] , {
257263 versionOverride : "versionOverride" ,
258- workspace : null
264+ workspace : null ,
265+ cacheMode : "Off"
259266 } , "enrichProjectGraph got called with correct options" ) ;
260267} ) ;
261268
@@ -290,7 +297,8 @@ test.serial("graphFromStaticFile", async (t) => {
290297 filePath : "file/path" ,
291298 rootConfiguration : "rootConfiguration" ,
292299 rootConfigPath : "/rootConfigPath" ,
293- versionOverride : "versionOverride"
300+ versionOverride : "versionOverride" ,
301+ cacheMode : CacheMode . Off
294302 } ) ;
295303
296304 t . is ( res , "graph" ) ;
@@ -316,7 +324,8 @@ test.serial("graphFromStaticFile", async (t) => {
316324 t . is ( enrichProjectGraphStub . getCall ( 0 ) . args [ 0 ] , "graph" ,
317325 "enrichProjectGraph got called with graph" ) ;
318326 t . deepEqual ( enrichProjectGraphStub . getCall ( 0 ) . args [ 1 ] , {
319- versionOverride : "versionOverride"
327+ versionOverride : "versionOverride" ,
328+ cacheMode : "Off"
320329 } , "enrichProjectGraph got called with correct options" ) ;
321330} ) ;
322331
@@ -351,7 +360,8 @@ test.serial("usingObject", async (t) => {
351360 dependencyTree : "dependencyTree" ,
352361 rootConfiguration : "rootConfiguration" ,
353362 rootConfigPath : "/rootConfigPath" ,
354- versionOverride : "versionOverride"
363+ versionOverride : "versionOverride" ,
364+ cacheMode : "Off"
355365 } ) ;
356366
357367 t . is ( res , "graph" ) ;
@@ -371,7 +381,8 @@ test.serial("usingObject", async (t) => {
371381 t . is ( enrichProjectGraphStub . getCall ( 0 ) . args [ 0 ] , "graph" ,
372382 "enrichProjectGraph got called with graph" ) ;
373383 t . deepEqual ( enrichProjectGraphStub . getCall ( 0 ) . args [ 1 ] , {
374- versionOverride : "versionOverride"
384+ versionOverride : "versionOverride" ,
385+ cacheMode : "Off"
375386 } , "enrichProjectGraph got called with correct options" ) ;
376387} ) ;
377388
0 commit comments