Playwright Check Suites are currently in Beta. Join the Slack community to get live updates on feature development and get help getting started.
Using JavaScript/Node.js dependencies
Whether you use npm, yarn, or pnpm; Checkly uses your existingpackage.json
and lock files to install the correct devDependencies
and prepare your testing and monitoring environment.
pnpm-lock.json
or yarn.lock
) is discovered, Checkly uses the matching package manager to install the project dependencies.
Available lock file | Package manager |
---|---|
package-lock.json | npm |
pnpm-lock.json | pnpm |
yarn.lock | yarn |
Forpnpm
users: if you define the same dependency independencies
anddevDependencies
, please use a custominstallCommand
in yourcheckly.config.ts|js
to register your package as a development dependency:pnpm install --dev additional-package
Using private dependencies
There are no dependency changes required if you rely on private packages or a custom package registry. The Checkly CLI detects your existing privatepackage.json
dependencies and installs those using the credentials provided.
install
your private source code.
For example, if you use npm to manage your private dependencies, you need to:
- add custom npm configuration to your project.
- include custom configuration files in your Checkly project to make the infrastructure aware.
Custom npm configuration for private packages
Let’s look at popular options for private packages:- using private npm packages on the public npm registry.
- using npm with JFrog Artifactory.
.npmrc
file.
To avoid putting sensitive information into your .npmrc
we recommend setting your authentication token via Checkly environment variables available in the UI or the CLI.
Using private npm packages
Using JFrog Artifactory
Include custom configuration files
To make the Checkly CLI and infrastructure aware of a custom package manager configuration for private packages, specify the additional files in thechecks.include
property in your checkly.config.ts|js
.
Checkly CLI commands like test
or deploy
will then bundle and upload these files so they are available in the Checkly infrastructure when running essential commands like install
.