From a544bbcecc3e5544dbac9e43491a8050a067ea43 Mon Sep 17 00:00:00 2001 From: Vitaliy Potapov Date: Thu, 10 Oct 2024 10:32:43 +0400 Subject: [PATCH] docs: disable cache in report http server --- docs/reporters/cucumber.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reporters/cucumber.md b/docs/reporters/cucumber.md index 1b48117f..4d42045d 100644 --- a/docs/reporters/cucumber.md +++ b/docs/reporters/cucumber.md @@ -129,7 +129,7 @@ export default defineConfig({ To view trace by click, you should open HTML report on `http(s)://` schema, not on `file://`. To achieve that on local machine, you can start http server by the following command: ``` -npx http-server ./cucumber-report -o index.html +npx http-server ./cucumber-report -c-1 -o index.html ``` ![html report with trace](./_media/html-report-with-trace.png) @@ -138,7 +138,7 @@ You can add that command to `package.json` scripts to open Cucumber report quick ```json { "scripts": { - "show-report": "npx http-server ./cucumber-report -o index.html" + "show-report": "npx http-server ./cucumber-report -c-1 -o index.html" } } ```