@@ -114,6 +114,10 @@ export default class Test extends AuthCommand {
114114 allowNo : true ,
115115 env : 'CHECKLY_VERIFY_RUNTIME_DEPENDENCIES' ,
116116 } ) ,
117+ 'refresh-cache' : Flags . boolean ( {
118+ description : 'Force a fresh install of dependencies and update the cached version.' ,
119+ default : false ,
120+ } ) ,
117121 }
118122
119123 static args = {
@@ -148,6 +152,7 @@ export default class Test extends AuthCommand {
148152 'update-snapshots' : updateSnapshots ,
149153 retries,
150154 'verify-runtime-dependencies' : verifyRuntimeDependencies ,
155+ 'refresh-cache' : refreshCache ,
151156 } = flags
152157 const filePatterns = argv as string [ ]
153158
@@ -184,7 +189,7 @@ export default class Test extends AuthCommand {
184189 availableRuntimes : availableRuntimes . reduce ( ( acc , runtime ) => {
185190 acc [ runtime . name ] = runtime
186191 return acc
187- } , < Record < string , Runtime > > { } ) ,
192+ } , < Record < string , Runtime > > { } ) ,
188193 defaultRuntimeId : account . runtimeId ,
189194 verifyRuntimeDependencies,
190195 checklyConfigConstructs,
@@ -359,6 +364,8 @@ export default class Test extends AuthCommand {
359364 updateSnapshots ,
360365 configDirectory ,
361366 testRetryStrategy ,
367+ undefined ,
368+ refreshCache ,
362369 )
363370
364371 runner . on ( Events . RUN_STARTED ,
0 commit comments