Skip to content

Commit

Permalink
chore: add a message for failed cache runs
Browse files Browse the repository at this point in the history
  • Loading branch information
amk-dev committed Dec 31, 2024
1 parent 828afa4 commit a85b32e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/shortest/src/core/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ export class TestRunner {
// reset window state
const page = browserTool.getPage();
await page.goto(initialState.metadata?.window_info?.url!);

// print that the cache run failed due to some reason,
console.log(
pc.yellow(
`Cache run failed for test ${hashData(test)}, running test in normal mode`,
),
);

await this.executeTest(test, context, {
noCache: true,
});
Expand Down

0 comments on commit a85b32e

Please sign in to comment.