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.
By default, the Checkly infrastructure installs dependencies via npm.
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 |
For
pnpm
users: if you define the same dependency in dependencies
and devDependencies
, please use a custom installCommand
in your checkly.config.ts|js
to ensure all required dependenies are installed: pnpm install
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 your configuration for private packages, specify the additional files in thechecks.include
property in your checkly.config.ts
.
Checkly CLI commands like test
or deploy
will bundle and upload these files so they are available in the Checkly infrastructure when running essential commands like install
; making sure your private dependencies are installed.
checkly.config.ts