checkly.config.ts, testing it, and deploying your first check suites.
Prerequisites
Prerequisites
- A Checkly account
- A repository with Playwright tests and a
playwright.config.tsfile - Playwright version 1.40 or higher
- Node.js installed locally
Step 1: Install the Checkly CLI
terminal
jiti to bundle config and test files correctly:
terminal
Step 2: Create Your checkly.config.ts
Create acheckly.config.ts file in your project root. This file defines which tests become monitors and how they run.
Basic structure:
checkly.config.ts
Step 3: Select Tests to Monitor
Each entry in theplaywrightChecks array becomes a separate monitor. Use pwProjects or pwTags to control which tests each check suite runs.
This example creates two check suites — one for critical flows running every 5 minutes, and one for secondary features at a lower frequency:
checkly.config.ts
frequency and locations override the global defaults set in Step 2. For strategies on grouping tests by urgency, environment, or feature area, see Test organization.
Step 4: Test Your Configuration
Before deploying, validate your monitoring setup locally:terminal
--record flag uploads results to Checkly so you can review traces, logs, and screenshots in the UI.
This runs your check suites in Checkly’s infrastructure and shows results:
terminal
Difference between
checkly test and checkly pw-test:checkly test- Runs check suites defined incheckly.config.tsandcheck.tsfilescheckly pw-test- Runs any Playwright tests defined in yourplaywright.config.ts, directly on Checkly’s cloud infrastructure. See the CLI reference.
Step 5: Deploy to Production Monitoring
Deploy your check suites to start continuous monitoring:terminal
Best Practices
- Start small — Begin with 1-2 critical flows. Add more as you understand your monitoring needs.
- Keep suites fast — Shorter suites mean faster alerts. See How long should a check suite run? for guidance.
- Reuse authentication state — Use Playwright project dependencies and
storageStateto log in once and share the session across tests.
Next Steps
Test Organization
Advanced strategies for organizing test suites
Configure Alerts
Set up notifications when checks fail
Add to Groups
Organize checks with groups
checkly pw-test
Run Playwright tests on Checkly’s cloud infrastructure