-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcheckly.config.js
More file actions
67 lines (65 loc) · 3.03 KB
/
checkly.config.js
File metadata and controls
67 lines (65 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const { defineConfig } = require('checkly')
const { AlertEscalationBuilder, RetryStrategyBuilder } = require('checkly/constructs')
/**
* See https://www.checklyhq.com/docs/cli/project-structure/
*/
const config = defineConfig({
/* A human friendly name for your project */
projectName: 'Advanced Example Project',
/** A logical ID that needs to be unique across your Checkly account,
* See https://www.checklyhq.com/docs/cli/constructs/ to learn more about logical IDs.
*/
logicalId: 'advanced-example-project',
/* An optional URL to your Git repo to be shown in your test sessions and resource activity log */
/* repoUrl: 'https://github.com/checkly/checkly-cli', */
/* Sets default values for Checks */
checks: {
/* A default for how often your Check should run in minutes */
frequency: 10,
/* Checkly data centers to run your Checks as monitors */
locations: ['us-east-1', 'eu-west-2'],
/* An optional array of tags to organize your Checks */
tags: ['mac'],
/** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime.
* See https://www.checklyhq.com/docs/cli/npm-packages/
*/
runtimeId: '2025.04',
/* Failed check runs will be retried before triggering alerts */
retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }),
alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(1),
/* A glob pattern that matches the Checks inside your repo, see https://www.checklyhq.com/docs/cli/using-check-test-match/ */
checkMatch: '**/__checks__/**/*.check.js',
/* Global configuration option for Browser and Multistep checks. See https://www.checklyhq.com/docs/browser-checks/playwright-test/#global-configuration */
playwrightConfig: {
timeout: 30000,
use: {
baseURL: 'https://www.danube-web.shop',
viewport: { width: 1280, height: 720 },
}
},
browserChecks: {
/* A glob pattern matches any Playwright .spec.js files and automagically creates a Browser Check. This way, you
* can just write Playwright code. See https://www.checklyhq.com/docs/constructs/including-checks/#browserchecks-testmatch
* */
testMatch: '**/__checks__/**/*.spec.js',
},
// Playwright Check Suites definition, run the whole Playwright Test Suite in a Check
playwrightConfigPath: './playwright.config.js',
playwrightChecks: [
{
logicalId: 'playwright-check-suite',
name: 'Playwright Check Suite JS',
//Use `testCommand: npx playwright test` to filter the tests you want to run
}
],
},
cli: {
/* The default datacenter location to use when running npx checkly test */
runLocation: 'eu-west-2',
/* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */
reporters: ['list'],
/* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */
retries: 0,
},
})
module.exports = config