Skip to content

Commit

Permalink
fix(core): more accurate cache restore log
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed May 14, 2023
1 parent 61a91b1 commit d1c4047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/unlighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export async function createUnlighthouse(userConfig: UserConfig, provider?: Prov
// title
title.join('\n'),
))
if (existsSync(join(ctx.runtimeSettings.generatedClientPath, 'reports')) && ctx.resolvedConfig.cache)
if (existsSync(join(ctx.runtimeSettings.generatedClientPath, 'reports', 'lighthouse.json')) && ctx.resolvedConfig.cache)
logger.info(`Restoring reports from cache. ${chalk.gray('You can disable this behavior by passing --no-cache.')}`)
}
return ctx
Expand Down

0 comments on commit d1c4047

Please sign in to comment.