From 9f7f29913909cdee4522e8919e84fdec61c88146 Mon Sep 17 00:00:00 2001 From: miliberlin Date: Mon, 4 May 2026 15:10:48 +0200 Subject: [PATCH 1/2] fix: correct --install-command flag spelling in CLI docs Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/checkly-pw-test.mdx | 8 ++++---- detect/testing/overview.mdx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/checkly-pw-test.mdx b/cli/checkly-pw-test.mdx index b4e47592..93ce4cc4 100644 --- a/cli/checkly-pw-test.mdx +++ b/cli/checkly-pw-test.mdx @@ -38,7 +38,7 @@ Define `checkly pw-test` specific options before the `--` separator: | `--create-check` | - | Create a Checkly check from the Playwright test. | | `--env, -e` | - | Env vars to be passed to the test run. Default: [] | | `--env-file` | - | dotenv file path to be passed. For example `--env-file="./.env"` | -| `--installCommand` | - | Override the command used to install dependencies before running tests. | +| `--install-command` | - | Override the command used to install dependencies before running tests. | | `--location, -l` | - | The location to run the checks at. | | `--private-location` | - | The private location to run checks at. | | `--[no-]record` | - | Record test results in Checkly as a test session with full logs, traces and videos. | @@ -148,15 +148,15 @@ npx checkly pw-test --env-file="./.env" - + Override the command used to install dependencies before running tests. By default, Checkly runs `npm install --dev`. Use this to customize the install step, for example to skip lifecycle scripts or use a different package manager. **Usage:** ```bash Terminal -npx checkly pw-test --installCommand='npm install --no-scripts' -npx checkly pw-test --installCommand='pnpm install --frozen-lockfile' +npx checkly pw-test --install-command='npm install --no-scripts' +npx checkly pw-test --install-command='pnpm install --frozen-lockfile' ``` diff --git a/detect/testing/overview.mdx b/detect/testing/overview.mdx index dc32e57a..d2e9b37d 100644 --- a/detect/testing/overview.mdx +++ b/detect/testing/overview.mdx @@ -74,7 +74,7 @@ npx checkly pw-test --location="eu-west-1" -- --grep="@smoke" Customize the dependency installation step for the cloud environment: ```bash Terminal -npx checkly pw-test --installCommand='npm install --no-scripts' +npx checkly pw-test --install-command='npm install --no-scripts' ``` Learn more in the [`checkly pw-test` CLI reference](/cli/checkly-pw-test). From 2f1dd68137723393c277fde62442a3b315b46385 Mon Sep 17 00:00:00 2001 From: miliberlin Date: Mon, 4 May 2026 15:14:19 +0200 Subject: [PATCH 2/2] docs: document --include, -i flag for checkly pw-test Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/checkly-pw-test.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cli/checkly-pw-test.mdx b/cli/checkly-pw-test.mdx index 93ce4cc4..e095aebb 100644 --- a/cli/checkly-pw-test.mdx +++ b/cli/checkly-pw-test.mdx @@ -38,6 +38,7 @@ Define `checkly pw-test` specific options before the `--` separator: | `--create-check` | - | Create a Checkly check from the Playwright test. | | `--env, -e` | - | Env vars to be passed to the test run. Default: [] | | `--env-file` | - | dotenv file path to be passed. For example `--env-file="./.env"` | +| `--include, -i` | - | File patterns to include when bundling the test project (e.g., `"utils/**/*"`). Can be repeated. | | `--install-command` | - | Override the command used to install dependencies before running tests. | | `--location, -l` | - | The location to run the checks at. | | `--private-location` | - | The private location to run checks at. | @@ -148,6 +149,21 @@ npx checkly pw-test --env-file="./.env" + + +File patterns to include when bundling the test project. Use this to add files that aren't automatically detected as dependencies, such as fixtures, helpers, or assets referenced at runtime. Can be specified multiple times to include multiple patterns. + +If not provided, falls back to the `checks.include` value in your `checkly.config`. + +**Usage:** + +```bash Terminal +npx checkly pw-test --include="utils/**/*" +npx checkly pw-test -i="fixtures/**/*" -i="data/*.json" +``` + + + Override the command used to install dependencies before running tests. By default, Checkly runs `npm install --dev`. Use this to customize the install step, for example to skip lifecycle scripts or use a different package manager.