diff --git a/cli/checkly-pw-test.mdx b/cli/checkly-pw-test.mdx index c3c87253..53c97251 100644 --- a/cli/checkly-pw-test.mdx +++ b/cli/checkly-pw-test.mdx @@ -38,7 +38,8 @@ 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. | +| `--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. | | `--[no-]record` | - | Record test results in Checkly as a test session with full logs, traces and videos. | @@ -149,15 +150,30 @@ 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. **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).