checkly 7.15.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/bin/run +5 -3
- package/dist/ai-context/checkly.rules.md +15 -8
- package/dist/ai-context/context.js +11 -14
- package/dist/ai-context/context.js.map +1 -1
- package/dist/ai-context/skills-command/references/configure-api-checks.md +11 -6
- package/dist/ai-context/skills-command/references/configure-playwright-checks.md +2 -1
- package/dist/ai-context/skills-command/references/configure-supporting-constructs.md +1 -0
- package/dist/ai-context/skills-command/references/configure.md +1 -1
- package/dist/auth/index.js +17 -56
- package/dist/auth/index.js.map +1 -1
- package/dist/commands/account/members.d.ts +2 -2
- package/dist/commands/account/members.js +21 -60
- package/dist/commands/account/members.js.map +1 -1
- package/dist/commands/account/plan.d.ts +1 -1
- package/dist/commands/account/plan.js +16 -52
- package/dist/commands/account/plan.js.map +1 -1
- package/dist/commands/authCommand.d.ts +3 -3
- package/dist/commands/authCommand.js +11 -51
- package/dist/commands/authCommand.js.map +1 -1
- package/dist/commands/baseCommand.d.ts +2 -2
- package/dist/commands/baseCommand.js +15 -19
- package/dist/commands/baseCommand.js.map +1 -1
- package/dist/commands/checks/get.d.ts +1 -1
- package/dist/commands/checks/get.js +62 -101
- package/dist/commands/checks/get.js.map +1 -1
- package/dist/commands/checks/list.d.ts +1 -1
- package/dist/commands/checks/list.js +25 -64
- package/dist/commands/checks/list.js.map +1 -1
- package/dist/commands/checks/stats.d.ts +1 -1
- package/dist/commands/checks/stats.js +24 -60
- package/dist/commands/checks/stats.js.map +1 -1
- package/dist/commands/debug/parse-file.js +15 -21
- package/dist/commands/debug/parse-file.js.map +1 -1
- package/dist/commands/debug/parse-playwright-config.js +10 -16
- package/dist/commands/debug/parse-playwright-config.js.map +1 -1
- package/dist/commands/debug/parse-project.js +23 -29
- package/dist/commands/debug/parse-project.js.map +1 -1
- package/dist/commands/deploy.d.ts +1 -1
- package/dist/commands/deploy.js +49 -88
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/destroy.d.ts +1 -1
- package/dist/commands/destroy.js +16 -55
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/env/add.d.ts +1 -1
- package/dist/commands/env/add.js +10 -49
- package/dist/commands/env/add.js.map +1 -1
- package/dist/commands/env/ls.d.ts +1 -1
- package/dist/commands/env/ls.js +5 -41
- package/dist/commands/env/ls.js.map +1 -1
- package/dist/commands/env/pull.d.ts +1 -1
- package/dist/commands/env/pull.js +13 -52
- package/dist/commands/env/pull.js.map +1 -1
- package/dist/commands/env/rm.d.ts +1 -1
- package/dist/commands/env/rm.js +7 -43
- package/dist/commands/env/rm.js.map +1 -1
- package/dist/commands/env/update.d.ts +1 -1
- package/dist/commands/env/update.js +10 -49
- package/dist/commands/env/update.js.map +1 -1
- package/dist/commands/help.d.ts +1 -1
- package/dist/commands/help.js +4 -10
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/import/apply.d.ts +3 -3
- package/dist/commands/import/apply.js +28 -69
- package/dist/commands/import/apply.js.map +1 -1
- package/dist/commands/import/cancel.d.ts +1 -1
- package/dist/commands/import/cancel.js +14 -53
- package/dist/commands/import/cancel.js.map +1 -1
- package/dist/commands/import/commit.d.ts +3 -3
- package/dist/commands/import/commit.js +21 -62
- package/dist/commands/import/commit.js.map +1 -1
- package/dist/commands/import/plan.d.ts +1 -1
- package/dist/commands/import/plan.js +107 -147
- package/dist/commands/import/plan.js.map +1 -1
- package/dist/commands/incidents/create.d.ts +1 -1
- package/dist/commands/incidents/create.js +26 -65
- package/dist/commands/incidents/create.js.map +1 -1
- package/dist/commands/incidents/list.d.ts +1 -1
- package/dist/commands/incidents/list.js +19 -58
- package/dist/commands/incidents/list.js.map +1 -1
- package/dist/commands/incidents/resolve.d.ts +1 -1
- package/dist/commands/incidents/resolve.js +18 -57
- package/dist/commands/incidents/resolve.js.map +1 -1
- package/dist/commands/incidents/update.d.ts +1 -1
- package/dist/commands/incidents/update.js +25 -64
- package/dist/commands/incidents/update.js.map +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.js +45 -51
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.js +25 -66
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +1 -1
- package/dist/commands/logout.js +11 -17
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/pw-test.d.ts +4 -3
- package/dist/commands/pw-test.js +99 -126
- package/dist/commands/pw-test.js.map +1 -1
- package/dist/commands/rca/get.d.ts +1 -1
- package/dist/commands/rca/get.js +11 -47
- package/dist/commands/rca/get.js.map +1 -1
- package/dist/commands/rca/run.d.ts +4 -2
- package/dist/commands/rca/run.js +67 -69
- package/dist/commands/rca/run.js.map +1 -1
- package/dist/commands/rules.d.ts +1 -1
- package/dist/commands/rules.js +18 -55
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/runtimes.d.ts +1 -1
- package/dist/commands/runtimes.js +3 -39
- package/dist/commands/runtimes.js.map +1 -1
- package/dist/commands/skills/index.d.ts +1 -1
- package/dist/commands/skills/index.js +22 -23
- package/dist/commands/skills/index.js.map +1 -1
- package/dist/commands/skills/install.d.ts +1 -1
- package/dist/commands/skills/install.js +40 -49
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/commands/status-pages/get.d.ts +1 -1
- package/dist/commands/status-pages/get.js +12 -51
- package/dist/commands/status-pages/get.js.map +1 -1
- package/dist/commands/status-pages/list.d.ts +1 -1
- package/dist/commands/status-pages/list.js +16 -52
- package/dist/commands/status-pages/list.js.map +1 -1
- package/dist/commands/switch.d.ts +1 -1
- package/dist/commands/switch.js +15 -54
- package/dist/commands/switch.js.map +1 -1
- package/dist/commands/sync-playwright.d.ts +1 -1
- package/dist/commands/sync-playwright.js +21 -60
- package/dist/commands/sync-playwright.js.map +1 -1
- package/dist/commands/test.d.ts +3 -2
- package/dist/commands/test.js +96 -122
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/trigger.d.ts +6 -5
- package/dist/commands/trigger.js +67 -93
- package/dist/commands/trigger.js.map +1 -1
- package/dist/commands/validate.d.ts +1 -1
- package/dist/commands/validate.js +16 -55
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/whoami.d.ts +1 -1
- package/dist/commands/whoami.js +3 -39
- package/dist/commands/whoami.js.map +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -4
- package/dist/config.js.map +1 -1
- package/dist/constants.js +3 -6
- package/dist/constants.js.map +1 -1
- package/dist/constructs/agentic-check-codegen.d.ts +2 -2
- package/dist/constructs/agentic-check-codegen.js +6 -10
- package/dist/constructs/agentic-check-codegen.js.map +1 -1
- package/dist/constructs/agentic-check.d.ts +8 -8
- package/dist/constructs/agentic-check.js +10 -14
- package/dist/constructs/agentic-check.js.map +1 -1
- package/dist/constructs/alert-channel-codegen.d.ts +9 -9
- package/dist/constructs/alert-channel-codegen.js +21 -27
- package/dist/constructs/alert-channel-codegen.js.map +1 -1
- package/dist/constructs/alert-channel-subscription-codegen.d.ts +1 -1
- package/dist/constructs/alert-channel-subscription-codegen.js +2 -6
- package/dist/constructs/alert-channel-subscription-codegen.js.map +1 -1
- package/dist/constructs/alert-channel-subscription.d.ts +2 -2
- package/dist/constructs/alert-channel-subscription.js +4 -8
- package/dist/constructs/alert-channel-subscription.js.map +1 -1
- package/dist/constructs/alert-channel.d.ts +2 -2
- package/dist/constructs/alert-channel.js +7 -12
- package/dist/constructs/alert-channel.js.map +1 -1
- package/dist/constructs/alert-escalation-policy-codegen.d.ts +2 -2
- package/dist/constructs/alert-escalation-policy-codegen.js +6 -9
- package/dist/constructs/alert-escalation-policy-codegen.js.map +1 -1
- package/dist/constructs/alert-escalation-policy.js +1 -5
- package/dist/constructs/alert-escalation-policy.js.map +1 -1
- package/dist/constructs/api-assertion-codegen.d.ts +2 -2
- package/dist/constructs/api-assertion-codegen.js +7 -10
- package/dist/constructs/api-assertion-codegen.js.map +1 -1
- package/dist/constructs/api-assertion.d.ts +1 -1
- package/dist/constructs/api-assertion.js +7 -11
- package/dist/constructs/api-assertion.js.map +1 -1
- package/dist/constructs/api-check-bundle.d.ts +10 -10
- package/dist/constructs/api-check-bundle.js +1 -5
- package/dist/constructs/api-check-bundle.js.map +1 -1
- package/dist/constructs/api-check-codegen.d.ts +3 -3
- package/dist/constructs/api-check-codegen.js +10 -14
- package/dist/constructs/api-check-codegen.js.map +1 -1
- package/dist/constructs/api-check.d.ts +15 -15
- package/dist/constructs/api-check.js +36 -43
- package/dist/constructs/api-check.js.map +1 -1
- package/dist/constructs/api-request-codegen.d.ts +3 -3
- package/dist/constructs/api-request-codegen.js +8 -11
- package/dist/constructs/api-request-codegen.js.map +1 -1
- package/dist/constructs/api-request.d.ts +5 -5
- package/dist/constructs/api-request.js +1 -2
- package/dist/constructs/browser-check-bundle.d.ts +11 -11
- package/dist/constructs/browser-check-bundle.js +1 -5
- package/dist/constructs/browser-check-bundle.js.map +1 -1
- package/dist/constructs/browser-check-codegen.d.ts +3 -3
- package/dist/constructs/browser-check-codegen.js +9 -13
- package/dist/constructs/browser-check-codegen.js.map +1 -1
- package/dist/constructs/browser-check.d.ts +14 -14
- package/dist/constructs/browser-check.js +29 -36
- package/dist/constructs/browser-check.js.map +1 -1
- package/dist/constructs/check-codegen.d.ts +16 -16
- package/dist/constructs/check-codegen.js +38 -44
- package/dist/constructs/check-codegen.js.map +1 -1
- package/dist/constructs/check-config.js +1 -4
- package/dist/constructs/check-config.js.map +1 -1
- package/dist/constructs/check-group-codegen.d.ts +7 -7
- package/dist/constructs/check-group-codegen.js +29 -34
- package/dist/constructs/check-group-codegen.js.map +1 -1
- package/dist/constructs/check-group-ref.d.ts +3 -3
- package/dist/constructs/check-group-ref.js +8 -12
- package/dist/constructs/check-group-ref.js.map +1 -1
- package/dist/constructs/check-group-v1.d.ts +15 -15
- package/dist/constructs/check-group-v1.js +37 -44
- package/dist/constructs/check-group-v1.js.map +1 -1
- package/dist/constructs/check-group-v2.d.ts +8 -8
- package/dist/constructs/check-group-v2.js +4 -8
- package/dist/constructs/check-group-v2.js.map +1 -1
- package/dist/constructs/check-group.d.ts +4 -4
- package/dist/constructs/check-group.js +4 -22
- package/dist/constructs/check-group.js.map +1 -1
- package/dist/constructs/check.d.ts +15 -15
- package/dist/constructs/check.js +23 -28
- package/dist/constructs/check.js.map +1 -1
- package/dist/constructs/construct-codegen.d.ts +13 -13
- package/dist/constructs/construct-codegen.js +25 -30
- package/dist/constructs/construct-codegen.js.map +1 -1
- package/dist/constructs/construct-diagnostics.d.ts +2 -2
- package/dist/constructs/construct-diagnostics.js +12 -26
- package/dist/constructs/construct-diagnostics.js.map +1 -1
- package/dist/constructs/construct.d.ts +3 -3
- package/dist/constructs/construct.js +15 -24
- package/dist/constructs/construct.js.map +1 -1
- package/dist/constructs/dashboard-bundle.d.ts +2 -2
- package/dist/constructs/dashboard-bundle.js +1 -5
- package/dist/constructs/dashboard-bundle.js.map +1 -1
- package/dist/constructs/dashboard-codegen.d.ts +1 -1
- package/dist/constructs/dashboard-codegen.js +4 -8
- package/dist/constructs/dashboard-codegen.js.map +1 -1
- package/dist/constructs/dashboard.d.ts +4 -4
- package/dist/constructs/dashboard.js +19 -26
- package/dist/constructs/dashboard.js.map +1 -1
- package/dist/constructs/diagnostics.js +5 -13
- package/dist/constructs/diagnostics.js.map +1 -1
- package/dist/constructs/dns-assertion-codegen.d.ts +2 -2
- package/dist/constructs/dns-assertion-codegen.js +6 -9
- package/dist/constructs/dns-assertion-codegen.js.map +1 -1
- package/dist/constructs/dns-assertion.d.ts +1 -1
- package/dist/constructs/dns-assertion.js +6 -10
- package/dist/constructs/dns-assertion.js.map +1 -1
- package/dist/constructs/dns-monitor-codegen.d.ts +3 -3
- package/dist/constructs/dns-monitor-codegen.js +8 -12
- package/dist/constructs/dns-monitor-codegen.js.map +1 -1
- package/dist/constructs/dns-monitor.d.ts +8 -8
- package/dist/constructs/dns-monitor.js +9 -13
- package/dist/constructs/dns-monitor.js.map +1 -1
- package/dist/constructs/dns-request-codegen.d.ts +3 -3
- package/dist/constructs/dns-request-codegen.js +5 -8
- package/dist/constructs/dns-request-codegen.js.map +1 -1
- package/dist/constructs/dns-request.d.ts +1 -1
- package/dist/constructs/dns-request.js +1 -2
- package/dist/constructs/email-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/email-alert-channel-codegen.js +7 -11
- package/dist/constructs/email-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/email-alert-channel.d.ts +1 -1
- package/dist/constructs/email-alert-channel.js +4 -8
- package/dist/constructs/email-alert-channel.js.map +1 -1
- package/dist/constructs/environment-variable.d.ts +1 -1
- package/dist/constructs/environment-variable.js +1 -2
- package/dist/constructs/frequency-codegen.d.ts +1 -1
- package/dist/constructs/frequency-codegen.js +21 -24
- package/dist/constructs/frequency-codegen.js.map +1 -1
- package/dist/constructs/frequency.js +1 -5
- package/dist/constructs/frequency.js.map +1 -1
- package/dist/constructs/heartbeat-monitor-codegen.d.ts +3 -3
- package/dist/constructs/heartbeat-monitor-codegen.js +6 -10
- package/dist/constructs/heartbeat-monitor-codegen.js.map +1 -1
- package/dist/constructs/heartbeat-monitor.d.ts +1 -1
- package/dist/constructs/heartbeat-monitor.js +10 -13
- package/dist/constructs/heartbeat-monitor.js.map +1 -1
- package/dist/constructs/http-header.d.ts +1 -1
- package/dist/constructs/http-header.js +1 -2
- package/dist/constructs/http-request.js +1 -2
- package/dist/constructs/icmp-assertion-codegen.d.ts +2 -2
- package/dist/constructs/icmp-assertion-codegen.js +4 -7
- package/dist/constructs/icmp-assertion-codegen.js.map +1 -1
- package/dist/constructs/icmp-assertion.d.ts +1 -1
- package/dist/constructs/icmp-assertion.js +4 -8
- package/dist/constructs/icmp-assertion.js.map +1 -1
- package/dist/constructs/icmp-monitor-codegen.d.ts +3 -3
- package/dist/constructs/icmp-monitor-codegen.js +8 -12
- package/dist/constructs/icmp-monitor-codegen.js.map +1 -1
- package/dist/constructs/icmp-monitor.d.ts +8 -8
- package/dist/constructs/icmp-monitor.js +4 -8
- package/dist/constructs/icmp-monitor.js.map +1 -1
- package/dist/constructs/icmp-request-codegen.d.ts +3 -3
- package/dist/constructs/icmp-request-codegen.js +5 -8
- package/dist/constructs/icmp-request-codegen.js.map +1 -1
- package/dist/constructs/icmp-request.d.ts +2 -2
- package/dist/constructs/icmp-request.js +1 -2
- package/dist/constructs/incident.d.ts +1 -1
- package/dist/constructs/incident.js +1 -2
- package/dist/constructs/incidentio-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/incidentio-alert-channel-codegen.js +15 -19
- package/dist/constructs/incidentio-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/incidentio-alert-channel.d.ts +2 -2
- package/dist/constructs/incidentio-alert-channel.js +2 -6
- package/dist/constructs/incidentio-alert-channel.js.map +1 -1
- package/dist/constructs/index.d.ts +51 -51
- package/dist/constructs/index.js +51 -67
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/internal/assertion-codegen.d.ts +2 -2
- package/dist/constructs/internal/assertion-codegen.js +25 -29
- package/dist/constructs/internal/assertion-codegen.js.map +1 -1
- package/dist/constructs/internal/assertion.js +2 -7
- package/dist/constructs/internal/assertion.js.map +1 -1
- package/dist/constructs/internal/codegen/codegen.d.ts +2 -2
- package/dist/constructs/internal/codegen/codegen.js +1 -5
- package/dist/constructs/internal/codegen/codegen.js.map +1 -1
- package/dist/constructs/internal/codegen/context.d.ts +3 -3
- package/dist/constructs/internal/codegen/context.js +32 -74
- package/dist/constructs/internal/codegen/context.js.map +1 -1
- package/dist/constructs/internal/codegen/index.d.ts +4 -4
- package/dist/constructs/internal/codegen/index.js +4 -12
- package/dist/constructs/internal/codegen/index.js.map +1 -1
- package/dist/constructs/internal/codegen/safety.js +1 -5
- package/dist/constructs/internal/codegen/safety.js.map +1 -1
- package/dist/constructs/internal/codegen/snippet.js +8 -17
- package/dist/constructs/internal/codegen/snippet.js.map +1 -1
- package/dist/constructs/internal/common-diagnostics.d.ts +2 -2
- package/dist/constructs/internal/common-diagnostics.js +19 -27
- package/dist/constructs/internal/common-diagnostics.js.map +1 -1
- package/dist/constructs/internal/sanitize.d.ts +15 -0
- package/dist/constructs/internal/sanitize.js +36 -0
- package/dist/constructs/internal/sanitize.js.map +1 -0
- package/dist/constructs/ip.js +1 -2
- package/dist/constructs/key-value-pair-codegen.d.ts +3 -3
- package/dist/constructs/key-value-pair-codegen.js +6 -9
- package/dist/constructs/key-value-pair-codegen.js.map +1 -1
- package/dist/constructs/key-value-pair.js +1 -2
- package/dist/constructs/maintenance-window-codegen.d.ts +1 -1
- package/dist/constructs/maintenance-window-codegen.js +7 -11
- package/dist/constructs/maintenance-window-codegen.js.map +1 -1
- package/dist/constructs/maintenance-window.d.ts +1 -1
- package/dist/constructs/maintenance-window.js +4 -8
- package/dist/constructs/maintenance-window.js.map +1 -1
- package/dist/constructs/monitor-codegen.d.ts +1 -1
- package/dist/constructs/monitor-codegen.js +1 -5
- package/dist/constructs/monitor-codegen.js.map +1 -1
- package/dist/constructs/monitor.d.ts +14 -14
- package/dist/constructs/monitor.js +4 -8
- package/dist/constructs/monitor.js.map +1 -1
- package/dist/constructs/msteams-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/msteams-alert-channel-codegen.js +17 -21
- package/dist/constructs/msteams-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/msteams-alert-channel.d.ts +2 -2
- package/dist/constructs/msteams-alert-channel.js +2 -6
- package/dist/constructs/msteams-alert-channel.js.map +1 -1
- package/dist/constructs/multi-step-check-bundle.d.ts +10 -10
- package/dist/constructs/multi-step-check-bundle.js +1 -5
- package/dist/constructs/multi-step-check-bundle.js.map +1 -1
- package/dist/constructs/multi-step-check-codegen.d.ts +3 -3
- package/dist/constructs/multi-step-check-codegen.js +8 -12
- package/dist/constructs/multi-step-check-codegen.js.map +1 -1
- package/dist/constructs/multi-step-check.d.ts +14 -14
- package/dist/constructs/multi-step-check.js +29 -36
- package/dist/constructs/multi-step-check.js.map +1 -1
- package/dist/constructs/opsgenie-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/opsgenie-alert-channel-codegen.js +7 -11
- package/dist/constructs/opsgenie-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/opsgenie-alert-channel.d.ts +1 -1
- package/dist/constructs/opsgenie-alert-channel.js +4 -8
- package/dist/constructs/opsgenie-alert-channel.js.map +1 -1
- package/dist/constructs/pagerduty-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/pagerduty-alert-channel-codegen.js +7 -11
- package/dist/constructs/pagerduty-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/pagerduty-alert-channel.d.ts +1 -1
- package/dist/constructs/pagerduty-alert-channel.js +4 -8
- package/dist/constructs/pagerduty-alert-channel.js.map +1 -1
- package/dist/constructs/phone-call-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/phone-call-alert-channel-codegen.js +7 -11
- package/dist/constructs/phone-call-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/phone-call-alert-channel.d.ts +1 -1
- package/dist/constructs/phone-call-alert-channel.js +4 -8
- package/dist/constructs/phone-call-alert-channel.js.map +1 -1
- package/dist/constructs/playwright-check-bundle.d.ts +8 -8
- package/dist/constructs/playwright-check-bundle.js +1 -5
- package/dist/constructs/playwright-check-bundle.js.map +1 -1
- package/dist/constructs/playwright-check.d.ts +11 -11
- package/dist/constructs/playwright-check.js +40 -47
- package/dist/constructs/playwright-check.js.map +1 -1
- package/dist/constructs/playwright-config-codegen.d.ts +2 -2
- package/dist/constructs/playwright-config-codegen.js +3 -6
- package/dist/constructs/playwright-config-codegen.js.map +1 -1
- package/dist/constructs/playwright-config.js +1 -2
- package/dist/constructs/private-location-check-assignment-codegen.d.ts +1 -1
- package/dist/constructs/private-location-check-assignment-codegen.js +2 -6
- package/dist/constructs/private-location-check-assignment-codegen.js.map +1 -1
- package/dist/constructs/private-location-check-assignment.d.ts +2 -2
- package/dist/constructs/private-location-check-assignment.js +4 -8
- package/dist/constructs/private-location-check-assignment.js.map +1 -1
- package/dist/constructs/private-location-codegen.d.ts +2 -2
- package/dist/constructs/private-location-codegen.js +8 -13
- package/dist/constructs/private-location-codegen.js.map +1 -1
- package/dist/constructs/private-location-group-assignment-codegen.d.ts +1 -1
- package/dist/constructs/private-location-group-assignment-codegen.js +2 -6
- package/dist/constructs/private-location-group-assignment-codegen.js.map +1 -1
- package/dist/constructs/private-location-group-assignment.d.ts +2 -2
- package/dist/constructs/private-location-group-assignment.js +4 -8
- package/dist/constructs/private-location-group-assignment.js.map +1 -1
- package/dist/constructs/private-location.d.ts +2 -2
- package/dist/constructs/private-location.js +10 -15
- package/dist/constructs/private-location.js.map +1 -1
- package/dist/constructs/project-bundle.d.ts +3 -3
- package/dist/constructs/project-bundle.js +1 -5
- package/dist/constructs/project-bundle.js.map +1 -1
- package/dist/constructs/project.d.ts +13 -13
- package/dist/constructs/project.js +32 -87
- package/dist/constructs/project.js.map +1 -1
- package/dist/constructs/query-param.d.ts +1 -1
- package/dist/constructs/query-param.js +1 -2
- package/dist/constructs/ref-codegen.d.ts +2 -2
- package/dist/constructs/ref-codegen.js +4 -7
- package/dist/constructs/ref-codegen.js.map +1 -1
- package/dist/constructs/ref.js +1 -5
- package/dist/constructs/ref.js.map +1 -1
- package/dist/constructs/retry-strategy-codegen.d.ts +2 -2
- package/dist/constructs/retry-strategy-codegen.js +14 -17
- package/dist/constructs/retry-strategy-codegen.js.map +1 -1
- package/dist/constructs/retry-strategy.js +1 -5
- package/dist/constructs/retry-strategy.js.map +1 -1
- package/dist/constructs/slack-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/slack-alert-channel-codegen.js +7 -11
- package/dist/constructs/slack-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/slack-alert-channel.d.ts +1 -1
- package/dist/constructs/slack-alert-channel.js +4 -8
- package/dist/constructs/slack-alert-channel.js.map +1 -1
- package/dist/constructs/sms-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/sms-alert-channel-codegen.js +7 -11
- package/dist/constructs/sms-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/sms-alert-channel.d.ts +1 -1
- package/dist/constructs/sms-alert-channel.js +4 -8
- package/dist/constructs/sms-alert-channel.js.map +1 -1
- package/dist/constructs/status-page-codegen.d.ts +3 -3
- package/dist/constructs/status-page-codegen.js +6 -10
- package/dist/constructs/status-page-codegen.js.map +1 -1
- package/dist/constructs/status-page-service-codegen.d.ts +2 -2
- package/dist/constructs/status-page-service-codegen.js +8 -13
- package/dist/constructs/status-page-service-codegen.js.map +1 -1
- package/dist/constructs/status-page-service.d.ts +2 -2
- package/dist/constructs/status-page-service.js +8 -13
- package/dist/constructs/status-page-service.js.map +1 -1
- package/dist/constructs/status-page.d.ts +2 -2
- package/dist/constructs/status-page.js +6 -10
- package/dist/constructs/status-page.js.map +1 -1
- package/dist/constructs/tcp-monitor-codegen.d.ts +4 -4
- package/dist/constructs/tcp-monitor-codegen.js +10 -15
- package/dist/constructs/tcp-monitor-codegen.js.map +1 -1
- package/dist/constructs/tcp-monitor.d.ts +9 -9
- package/dist/constructs/tcp-monitor.js +12 -16
- package/dist/constructs/tcp-monitor.js.map +1 -1
- package/dist/constructs/telegram-alert-channel-codegen.d.ts +2 -2
- package/dist/constructs/telegram-alert-channel-codegen.js +15 -22
- package/dist/constructs/telegram-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/telegram-alert-channel.d.ts +2 -2
- package/dist/constructs/telegram-alert-channel.js +2 -6
- package/dist/constructs/telegram-alert-channel.js.map +1 -1
- package/dist/constructs/url-assertion-codegen.d.ts +2 -2
- package/dist/constructs/url-assertion-codegen.js +3 -6
- package/dist/constructs/url-assertion-codegen.js.map +1 -1
- package/dist/constructs/url-assertion.d.ts +1 -1
- package/dist/constructs/url-assertion.js +3 -7
- package/dist/constructs/url-assertion.js.map +1 -1
- package/dist/constructs/url-monitor-codegen.d.ts +3 -3
- package/dist/constructs/url-monitor-codegen.js +8 -12
- package/dist/constructs/url-monitor-codegen.js.map +1 -1
- package/dist/constructs/url-monitor.d.ts +10 -10
- package/dist/constructs/url-monitor.js +6 -10
- package/dist/constructs/url-monitor.js.map +1 -1
- package/dist/constructs/url-request-codegen.d.ts +3 -3
- package/dist/constructs/url-request-codegen.js +5 -8
- package/dist/constructs/url-request-codegen.js.map +1 -1
- package/dist/constructs/url-request.d.ts +2 -2
- package/dist/constructs/url-request.js +1 -2
- package/dist/constructs/validator-error.js +1 -5
- package/dist/constructs/validator-error.js.map +1 -1
- package/dist/constructs/webhook-alert-channel-codegen.d.ts +8 -8
- package/dist/constructs/webhook-alert-channel-codegen.js +20 -25
- package/dist/constructs/webhook-alert-channel-codegen.js.map +1 -1
- package/dist/constructs/webhook-alert-channel.d.ts +4 -4
- package/dist/constructs/webhook-alert-channel.js +4 -8
- package/dist/constructs/webhook-alert-channel.js.map +1 -1
- package/dist/formatters/account-members.d.ts +2 -2
- package/dist/formatters/account-members.js +19 -27
- package/dist/formatters/account-members.js.map +1 -1
- package/dist/formatters/account-plan.d.ts +2 -2
- package/dist/formatters/account-plan.js +34 -47
- package/dist/formatters/account-plan.js.map +1 -1
- package/dist/formatters/analytics.d.ts +2 -2
- package/dist/formatters/analytics.js +25 -36
- package/dist/formatters/analytics.js.map +1 -1
- package/dist/formatters/batch-stats.d.ts +3 -3
- package/dist/formatters/batch-stats.js +28 -35
- package/dist/formatters/batch-stats.js.map +1 -1
- package/dist/formatters/check-result-detail.d.ts +2 -2
- package/dist/formatters/check-result-detail.js +73 -80
- package/dist/formatters/check-result-detail.js.map +1 -1
- package/dist/formatters/checks.d.ts +6 -6
- package/dist/formatters/checks.js +69 -86
- package/dist/formatters/checks.js.map +1 -1
- package/dist/formatters/incidents.d.ts +2 -2
- package/dist/formatters/incidents.js +36 -46
- package/dist/formatters/incidents.js.map +1 -1
- package/dist/formatters/rca.d.ts +10 -4
- package/dist/formatters/rca.js +43 -35
- package/dist/formatters/rca.js.map +1 -1
- package/dist/formatters/render.js +27 -47
- package/dist/formatters/render.js.map +1 -1
- package/dist/formatters/status-pages.d.ts +2 -2
- package/dist/formatters/status-pages.js +29 -39
- package/dist/formatters/status-pages.js.map +1 -1
- package/dist/help/examples.js +3 -5
- package/dist/help/examples.js.map +1 -1
- package/dist/help/help-extension.js +13 -17
- package/dist/help/help-extension.js.map +1 -1
- package/dist/help/skills.js +2 -5
- package/dist/help/skills.js.map +1 -1
- package/dist/helpers/cli-mode.js +3 -8
- package/dist/helpers/cli-mode.js.map +1 -1
- package/dist/helpers/command-preview.js +3 -8
- package/dist/helpers/command-preview.js.map +1 -1
- package/dist/helpers/command-style.d.ts +1 -1
- package/dist/helpers/command-style.js +24 -31
- package/dist/helpers/command-style.js.map +1 -1
- package/dist/helpers/constants.js +1 -4
- package/dist/helpers/constants.js.map +1 -1
- package/dist/helpers/flags.d.ts +5 -0
- package/dist/helpers/flags.js +29 -12
- package/dist/helpers/flags.js.map +1 -1
- package/dist/helpers/incidents.d.ts +2 -2
- package/dist/helpers/incidents.js +10 -18
- package/dist/helpers/incidents.js.map +1 -1
- package/dist/helpers/onboarding/boilerplate.js +46 -53
- package/dist/helpers/onboarding/boilerplate.js.map +1 -1
- package/dist/helpers/onboarding/clipboard.js +6 -9
- package/dist/helpers/onboarding/clipboard.js.map +1 -1
- package/dist/helpers/onboarding/detect-project.js +13 -16
- package/dist/helpers/onboarding/detect-project.js.map +1 -1
- package/dist/helpers/onboarding/index.d.ts +7 -7
- package/dist/helpers/onboarding/index.js +7 -25
- package/dist/helpers/onboarding/index.js.map +1 -1
- package/dist/helpers/onboarding/messages.js +47 -57
- package/dist/helpers/onboarding/messages.js.map +1 -1
- package/dist/helpers/onboarding/prompt-display.js +11 -17
- package/dist/helpers/onboarding/prompt-display.js.map +1 -1
- package/dist/helpers/onboarding/prompts-helpers.js +4 -11
- package/dist/helpers/onboarding/prompts-helpers.js.map +1 -1
- package/dist/helpers/onboarding/skill-install.js +28 -35
- package/dist/helpers/onboarding/skill-install.js.map +1 -1
- package/dist/helpers/onboarding/template-prompt.js +8 -9
- package/dist/helpers/onboarding/template-prompt.js.map +1 -1
- package/dist/helpers/recast-acorn-parser.js +2 -38
- package/dist/helpers/recast-acorn-parser.js.map +1 -1
- package/dist/helpers/test-helper.d.ts +3 -3
- package/dist/helpers/test-helper.js +10 -16
- package/dist/helpers/test-helper.js.map +1 -1
- package/dist/helpers/wrap.js +1 -4
- package/dist/helpers/wrap.js.map +1 -1
- package/dist/helpers/write-config-helpers.js +11 -53
- package/dist/helpers/write-config-helpers.js.map +1 -1
- package/dist/hooks/command-not-found.d.ts +3 -0
- package/dist/hooks/command-not-found.js +22 -0
- package/dist/hooks/command-not-found.js.map +1 -0
- package/dist/hooks/parse-error.d.ts +3 -0
- package/dist/hooks/parse-error.js +15 -0
- package/dist/hooks/parse-error.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -39
- package/dist/index.js.map +1 -1
- package/dist/loader/config.js +4 -9
- package/dist/loader/config.js.map +1 -1
- package/dist/loader/index.d.ts +5 -6
- package/dist/loader/index.js +5 -20
- package/dist/loader/index.js.map +1 -1
- package/dist/loader/jiti.d.ts +1 -1
- package/dist/loader/jiti.js +15 -22
- package/dist/loader/jiti.js.map +1 -1
- package/dist/loader/loader.d.ts +1 -1
- package/dist/loader/loader.js +4 -9
- package/dist/loader/loader.js.map +1 -1
- package/dist/loader/match.js +3 -7
- package/dist/loader/match.js.map +1 -1
- package/dist/loader/mixed.d.ts +1 -1
- package/dist/loader/mixed.js +4 -8
- package/dist/loader/mixed.js.map +1 -1
- package/dist/loader/native.d.ts +2 -2
- package/dist/loader/native.js +14 -20
- package/dist/loader/native.js.map +1 -1
- package/dist/messages/common-messages.d.ts +0 -3
- package/dist/messages/common-messages.js +1 -6
- package/dist/messages/common-messages.js.map +1 -1
- package/dist/playwright/playwright-config-loader.js +7 -13
- package/dist/playwright/playwright-config-loader.js.map +1 -1
- package/dist/playwright/playwright-config-template.d.ts +1 -1
- package/dist/playwright/playwright-config-template.js +2 -38
- package/dist/playwright/playwright-config-template.js.map +1 -1
- package/dist/reporters/abstract-list.d.ts +9 -5
- package/dist/reporters/abstract-list.js +76 -48
- package/dist/reporters/abstract-list.js.map +1 -1
- package/dist/reporters/ci.d.ts +3 -3
- package/dist/reporters/ci.js +10 -20
- package/dist/reporters/ci.js.map +1 -1
- package/dist/reporters/dot.d.ts +2 -2
- package/dist/reporters/dot.js +8 -14
- package/dist/reporters/dot.js.map +1 -1
- package/dist/reporters/github.d.ts +2 -2
- package/dist/reporters/github.js +14 -59
- package/dist/reporters/github.js.map +1 -1
- package/dist/reporters/json.d.ts +2 -2
- package/dist/reporters/json.js +11 -52
- package/dist/reporters/json.js.map +1 -1
- package/dist/reporters/list.d.ts +3 -3
- package/dist/reporters/list.js +22 -32
- package/dist/reporters/list.js.map +1 -1
- package/dist/reporters/reporter.d.ts +4 -2
- package/dist/reporters/reporter.js +12 -19
- package/dist/reporters/reporter.js.map +1 -1
- package/dist/reporters/util.d.ts +2 -1
- package/dist/reporters/util.js +56 -95
- package/dist/reporters/util.js.map +1 -1
- package/dist/rest/account-members.js +1 -3
- package/dist/rest/account-members.js.map +1 -1
- package/dist/rest/accounts.js +1 -3
- package/dist/rest/accounts.js.map +1 -1
- package/dist/rest/analytics.js +23 -26
- package/dist/rest/analytics.js.map +1 -1
- package/dist/rest/api.d.ts +30 -26
- package/dist/rest/api.js +76 -82
- package/dist/rest/api.js.map +1 -1
- package/dist/rest/assets.js +6 -15
- package/dist/rest/assets.js.map +1 -1
- package/dist/rest/batch-analytics.js +2 -5
- package/dist/rest/batch-analytics.js.map +1 -1
- package/dist/rest/cancel.d.ts +14 -0
- package/dist/rest/cancel.js +28 -0
- package/dist/rest/cancel.js.map +1 -0
- package/dist/rest/check-groups.js +1 -3
- package/dist/rest/check-groups.js.map +1 -1
- package/dist/rest/check-results.js +1 -3
- package/dist/rest/check-results.js.map +1 -1
- package/dist/rest/check-statuses.js +1 -3
- package/dist/rest/check-statuses.js.map +1 -1
- package/dist/rest/checkly-storage.js +1 -3
- package/dist/rest/checkly-storage.js.map +1 -1
- package/dist/rest/checks.js +1 -3
- package/dist/rest/checks.js.map +1 -1
- package/dist/rest/entitlements.js +1 -3
- package/dist/rest/entitlements.js.map +1 -1
- package/dist/rest/environment-variables.js +8 -13
- package/dist/rest/environment-variables.js.map +1 -1
- package/dist/rest/error-groups.js +1 -3
- package/dist/rest/error-groups.js.map +1 -1
- package/dist/rest/errors.js +15 -31
- package/dist/rest/errors.js.map +1 -1
- package/dist/rest/heartbeat-checks.js +1 -3
- package/dist/rest/heartbeat-checks.js.map +1 -1
- package/dist/rest/incidents.js +1 -3
- package/dist/rest/incidents.js.map +1 -1
- package/dist/rest/locations.js +1 -3
- package/dist/rest/locations.js.map +1 -1
- package/dist/rest/private-locations.js +1 -4
- package/dist/rest/private-locations.js.map +1 -1
- package/dist/rest/projects.d.ts +2 -2
- package/dist/rest/projects.js +20 -28
- package/dist/rest/projects.js.map +1 -1
- package/dist/rest/rca.d.ts +2 -1
- package/dist/rest/rca.js +4 -3
- package/dist/rest/rca.js.map +1 -1
- package/dist/rest/runtimes.d.ts +1 -1
- package/dist/rest/runtimes.js +1 -3
- package/dist/rest/runtimes.js.map +1 -1
- package/dist/rest/status-pages.js +1 -3
- package/dist/rest/status-pages.js.map +1 -1
- package/dist/rest/test-session-error-groups.d.ts +18 -0
- package/dist/rest/test-session-error-groups.js +11 -0
- package/dist/rest/test-session-error-groups.js.map +1 -0
- package/dist/rest/test-sessions.d.ts +3 -3
- package/dist/rest/test-sessions.js +6 -10
- package/dist/rest/test-sessions.js.map +1 -1
- package/dist/rest/users.js +1 -3
- package/dist/rest/users.js.map +1 -1
- package/dist/rest/util.js +5 -11
- package/dist/rest/util.js.map +1 -1
- package/dist/runtimes/index.d.ts +2 -2
- package/dist/runtimes/index.js +1 -5
- package/dist/runtimes/index.js.map +1 -1
- package/dist/runtimes/runtime.js +1 -2
- package/dist/runtimes/snapshot.d.ts +1 -1
- package/dist/runtimes/snapshot.js +7 -11
- package/dist/runtimes/snapshot.js.map +1 -1
- package/dist/services/abstract-check-runner.d.ts +6 -3
- package/dist/services/abstract-check-runner.js +62 -61
- package/dist/services/abstract-check-runner.js.map +1 -1
- package/dist/services/check-parser/bundler.d.ts +2 -2
- package/dist/services/check-parser/bundler.js +24 -68
- package/dist/services/check-parser/bundler.js.map +1 -1
- package/dist/services/check-parser/cache-hash.d.ts +1 -1
- package/dist/services/check-parser/cache-hash.js +15 -25
- package/dist/services/check-parser/cache-hash.js.map +1 -1
- package/dist/services/check-parser/collector.js +3 -7
- package/dist/services/check-parser/collector.js.map +1 -1
- package/dist/services/check-parser/errors.d.ts +1 -1
- package/dist/services/check-parser/errors.js +1 -5
- package/dist/services/check-parser/errors.js.map +1 -1
- package/dist/services/check-parser/faux-package.d.ts +2 -2
- package/dist/services/check-parser/faux-package.js +3 -7
- package/dist/services/check-parser/faux-package.js.map +1 -1
- package/dist/services/check-parser/package-files/extension.js +14 -23
- package/dist/services/check-parser/package-files/extension.js.map +1 -1
- package/dist/services/check-parser/package-files/jsconfig-json-file.d.ts +2 -2
- package/dist/services/check-parser/package-files/jsconfig-json-file.js +4 -11
- package/dist/services/check-parser/package-files/jsconfig-json-file.js.map +1 -1
- package/dist/services/check-parser/package-files/json-source-file.d.ts +2 -2
- package/dist/services/check-parser/package-files/json-source-file.js +3 -7
- package/dist/services/check-parser/package-files/json-source-file.js.map +1 -1
- package/dist/services/check-parser/package-files/json-text-source-file-parser.d.ts +2 -2
- package/dist/services/check-parser/package-files/json-text-source-file-parser.js +7 -11
- package/dist/services/check-parser/package-files/json-text-source-file-parser.js.map +1 -1
- package/dist/services/check-parser/package-files/json-text-source-file.d.ts +2 -2
- package/dist/services/check-parser/package-files/json-text-source-file.js +5 -9
- package/dist/services/check-parser/package-files/json-text-source-file.js.map +1 -1
- package/dist/services/check-parser/package-files/loader.js +1 -5
- package/dist/services/check-parser/package-files/loader.js.map +1 -1
- package/dist/services/check-parser/package-files/lookup.js +10 -14
- package/dist/services/check-parser/package-files/lookup.js.map +1 -1
- package/dist/services/check-parser/package-files/package-json-file.d.ts +3 -3
- package/dist/services/check-parser/package-files/package-json-file.js +16 -23
- package/dist/services/check-parser/package-files/package-json-file.js.map +1 -1
- package/dist/services/check-parser/package-files/package-manager.d.ts +2 -2
- package/dist/services/check-parser/package-files/package-manager.js +65 -88
- package/dist/services/check-parser/package-files/package-manager.js.map +1 -1
- package/dist/services/check-parser/package-files/paths.js +6 -15
- package/dist/services/check-parser/package-files/paths.js.map +1 -1
- package/dist/services/check-parser/package-files/resolver.d.ts +8 -8
- package/dist/services/check-parser/package-files/resolver.js +37 -44
- package/dist/services/check-parser/package-files/resolver.js.map +1 -1
- package/dist/services/check-parser/package-files/result.js +2 -6
- package/dist/services/check-parser/package-files/result.js.map +1 -1
- package/dist/services/check-parser/package-files/source-file-parser.d.ts +1 -1
- package/dist/services/check-parser/package-files/source-file-parser.js +2 -7
- package/dist/services/check-parser/package-files/source-file-parser.js.map +1 -1
- package/dist/services/check-parser/package-files/source-file.js +6 -14
- package/dist/services/check-parser/package-files/source-file.js.map +1 -1
- package/dist/services/check-parser/package-files/tsconfig-json-file.d.ts +4 -4
- package/dist/services/check-parser/package-files/tsconfig-json-file.js +12 -19
- package/dist/services/check-parser/package-files/tsconfig-json-file.js.map +1 -1
- package/dist/services/check-parser/package-files/walk.js +7 -11
- package/dist/services/check-parser/package-files/walk.js.map +1 -1
- package/dist/services/check-parser/package-files/workspace.d.ts +2 -2
- package/dist/services/check-parser/package-files/workspace.js +9 -14
- package/dist/services/check-parser/package-files/workspace.js.map +1 -1
- package/dist/services/check-parser/parser.d.ts +3 -3
- package/dist/services/check-parser/parser.js +31 -70
- package/dist/services/check-parser/parser.js.map +1 -1
- package/dist/services/check-parser/playwright-config-expander.d.ts +1 -1
- package/dist/services/check-parser/playwright-config-expander.js +10 -50
- package/dist/services/check-parser/playwright-config-expander.js.map +1 -1
- package/dist/services/checkly-config-codegen.d.ts +3 -3
- package/dist/services/checkly-config-codegen.js +22 -25
- package/dist/services/checkly-config-codegen.js.map +1 -1
- package/dist/services/checkly-config-loader.d.ts +7 -7
- package/dist/services/checkly-config-loader.js +21 -63
- package/dist/services/checkly-config-loader.js.map +1 -1
- package/dist/services/config.js +4 -9
- package/dist/services/config.js.map +1 -1
- package/dist/services/load-dotenv.d.ts +1 -0
- package/dist/services/load-dotenv.js +44 -0
- package/dist/services/load-dotenv.js.map +1 -0
- package/dist/services/playwright-config.js +3 -41
- package/dist/services/playwright-config.js.map +1 -1
- package/dist/services/project-parser.d.ts +4 -4
- package/dist/services/project-parser.js +61 -100
- package/dist/services/project-parser.js.map +1 -1
- package/dist/services/proxy.js +8 -11
- package/dist/services/proxy.js.map +1 -1
- package/dist/services/shell.js +2 -6
- package/dist/services/shell.js.map +1 -1
- package/dist/services/snapshot-service.js +13 -51
- package/dist/services/snapshot-service.js.map +1 -1
- package/dist/services/socket-client.js +11 -51
- package/dist/services/socket-client.js.map +1 -1
- package/dist/services/test-filters.js +3 -8
- package/dist/services/test-filters.js.map +1 -1
- package/dist/services/test-runner.d.ts +6 -6
- package/dist/services/test-runner.js +11 -50
- package/dist/services/test-runner.js.map +1 -1
- package/dist/services/trigger-runner.d.ts +4 -4
- package/dist/services/trigger-runner.js +6 -12
- package/dist/services/trigger-runner.js.map +1 -1
- package/dist/services/util.d.ts +4 -4
- package/dist/services/util.js +66 -121
- package/dist/services/util.js.map +1 -1
- package/dist/sourcegen/args.d.ts +2 -2
- package/dist/sourcegen/args.js +2 -6
- package/dist/sourcegen/args.js.map +1 -1
- package/dist/sourcegen/argsbuilder.d.ts +5 -5
- package/dist/sourcegen/argsbuilder.js +22 -27
- package/dist/sourcegen/argsbuilder.js.map +1 -1
- package/dist/sourcegen/array.d.ts +2 -2
- package/dist/sourcegen/array.js +2 -6
- package/dist/sourcegen/array.js.map +1 -1
- package/dist/sourcegen/arraybuilder.d.ts +4 -4
- package/dist/sourcegen/arraybuilder.js +20 -25
- package/dist/sourcegen/arraybuilder.js.map +1 -1
- package/dist/sourcegen/boolean.d.ts +2 -2
- package/dist/sourcegen/boolean.js +2 -6
- package/dist/sourcegen/boolean.js.map +1 -1
- package/dist/sourcegen/case.js +8 -18
- package/dist/sourcegen/case.js.map +1 -1
- package/dist/sourcegen/comment.d.ts +2 -2
- package/dist/sourcegen/comment.js +9 -20
- package/dist/sourcegen/comment.js.map +1 -1
- package/dist/sourcegen/decl.d.ts +4 -4
- package/dist/sourcegen/decl.js +6 -15
- package/dist/sourcegen/decl.js.map +1 -1
- package/dist/sourcegen/declbuilder.d.ts +4 -4
- package/dist/sourcegen/declbuilder.js +8 -13
- package/dist/sourcegen/declbuilder.js.map +1 -1
- package/dist/sourcegen/expr.d.ts +3 -3
- package/dist/sourcegen/expr.js +7 -16
- package/dist/sourcegen/expr.js.map +1 -1
- package/dist/sourcegen/exprbuilder.d.ts +3 -3
- package/dist/sourcegen/exprbuilder.js +9 -14
- package/dist/sourcegen/exprbuilder.js.map +1 -1
- package/dist/sourcegen/identifier.d.ts +3 -3
- package/dist/sourcegen/identifier.js +5 -10
- package/dist/sourcegen/identifier.js.map +1 -1
- package/dist/sourcegen/index.d.ts +22 -22
- package/dist/sourcegen/index.js +22 -75
- package/dist/sourcegen/index.js.map +1 -1
- package/dist/sourcegen/null.d.ts +2 -2
- package/dist/sourcegen/null.js +2 -6
- package/dist/sourcegen/null.js.map +1 -1
- package/dist/sourcegen/number.d.ts +2 -2
- package/dist/sourcegen/number.js +2 -6
- package/dist/sourcegen/number.js.map +1 -1
- package/dist/sourcegen/object.d.ts +3 -3
- package/dist/sourcegen/object.js +6 -14
- package/dist/sourcegen/object.js.map +1 -1
- package/dist/sourcegen/objectbuilder.d.ts +4 -4
- package/dist/sourcegen/objectbuilder.js +21 -26
- package/dist/sourcegen/objectbuilder.js.map +1 -1
- package/dist/sourcegen/output.js +1 -5
- package/dist/sourcegen/output.js.map +1 -1
- package/dist/sourcegen/program.d.ts +4 -4
- package/dist/sourcegen/program.js +24 -64
- package/dist/sourcegen/program.js.map +1 -1
- package/dist/sourcegen/string.d.ts +2 -2
- package/dist/sourcegen/string.js +5 -10
- package/dist/sourcegen/string.js.map +1 -1
- package/dist/sourcegen/undefined.d.ts +2 -2
- package/dist/sourcegen/undefined.js +2 -6
- package/dist/sourcegen/undefined.js.map +1 -1
- package/dist/sourcegen/unknown.d.ts +1 -1
- package/dist/sourcegen/unknown.js +15 -18
- package/dist/sourcegen/unknown.js.map +1 -1
- package/dist/sourcegen/value.d.ts +1 -1
- package/dist/sourcegen/value.js +1 -5
- package/dist/sourcegen/value.js.map +1 -1
- package/dist/testing/fixture-sandbox.d.ts +20 -33
- package/dist/testing/fixture-sandbox.js +91 -75
- package/dist/testing/fixture-sandbox.js.map +1 -1
- package/dist/testing/global-setup.d.ts +2 -0
- package/dist/testing/global-setup.js +14 -0
- package/dist/testing/global-setup.js.map +1 -0
- package/dist/util/index.js +1 -4
- package/dist/util/index.js.map +1 -1
- package/oclif.manifest.json +86 -54
- package/package.json +46 -58
- package/dist/loader/ts-node.d.ts +0 -26
- package/dist/loader/ts-node.js +0 -111
- package/dist/loader/ts-node.js.map +0 -1
|
@@ -1,92 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const baseCommand_1 = require("./baseCommand");
|
|
40
|
-
const recast = __importStar(require("recast"));
|
|
41
|
-
const checkly_config_loader_1 = require("../services/checkly-config-loader");
|
|
42
|
-
const playwright_config_loader_1 = require("../playwright/playwright-config-loader");
|
|
43
|
-
const path_1 = __importDefault(require("path"));
|
|
44
|
-
const core_1 = require("@oclif/core");
|
|
45
|
-
const playwright_config_template_1 = __importDefault(require("../playwright/playwright-config-template"));
|
|
46
|
-
const write_config_helpers_1 = require("../helpers/write-config-helpers");
|
|
47
|
-
const acornParser = __importStar(require("../helpers/recast-acorn-parser"));
|
|
48
|
-
class SyncPlaywright extends baseCommand_1.BaseCommand {
|
|
1
|
+
import { BaseCommand } from './baseCommand.js';
|
|
2
|
+
import * as recast from 'recast';
|
|
3
|
+
import { getChecklyConfigFile } from '../services/checkly-config-loader.js';
|
|
4
|
+
import { loadPlaywrightConfig } from '../playwright/playwright-config-loader.js';
|
|
5
|
+
import path from 'path';
|
|
6
|
+
import { ux } from '@oclif/core';
|
|
7
|
+
import PlaywrightConfigTemplate from '../playwright/playwright-config-template.js';
|
|
8
|
+
import { addOrReplaceItem, findPropertyByName, reWriteChecklyConfigFile } from '../helpers/write-config-helpers.js';
|
|
9
|
+
import * as acornParser from '../helpers/recast-acorn-parser.js';
|
|
10
|
+
export default class SyncPlaywright extends BaseCommand {
|
|
49
11
|
static hidden = false;
|
|
50
12
|
static idempotent = true;
|
|
51
13
|
static description = 'Copy Playwright config into the Checkly config file.';
|
|
52
14
|
async run() {
|
|
53
15
|
if (this.fancy) {
|
|
54
|
-
|
|
16
|
+
ux.action.start('Syncing Playwright config to the Checkly config file', undefined, { stdout: true });
|
|
55
17
|
}
|
|
56
|
-
const configFile = await
|
|
18
|
+
const configFile = await getChecklyConfigFile();
|
|
57
19
|
if (!configFile) {
|
|
58
20
|
return this.handleError('Could not find a checkly config file');
|
|
59
21
|
}
|
|
60
22
|
const checklyAst = recast.parse(configFile.checklyConfig, { parser: acornParser });
|
|
61
|
-
const config = await
|
|
23
|
+
const config = await loadPlaywrightConfig();
|
|
62
24
|
if (!config) {
|
|
63
25
|
return this.handleError('Could not find any playwright.config file.');
|
|
64
26
|
}
|
|
65
|
-
const checksAst =
|
|
27
|
+
const checksAst = findPropertyByName(checklyAst, 'checks');
|
|
66
28
|
if (!checksAst) {
|
|
67
29
|
return this.handleError('Unable to automatically sync your config file. This can happen if your Checkly config is '
|
|
68
30
|
+ 'built using helper functions or other JS/TS features. You can still manually set Playwright config values in '
|
|
69
31
|
+ 'your Checkly config: https://www.checklyhq.com/docs/cli/constructs-reference/#project');
|
|
70
32
|
}
|
|
71
|
-
const pwtConfig = new
|
|
72
|
-
const pwtConfigAst =
|
|
73
|
-
|
|
33
|
+
const pwtConfig = new PlaywrightConfigTemplate(config).getConfigTemplate();
|
|
34
|
+
const pwtConfigAst = findPropertyByName(recast.parse(pwtConfig, { parser: acornParser }), 'playwrightConfig');
|
|
35
|
+
addOrReplaceItem(checksAst.value, pwtConfigAst, 'playwrightConfig');
|
|
74
36
|
const checklyConfigData = recast.print(checklyAst, { tabWidth: 2 }).code;
|
|
75
|
-
const dir =
|
|
76
|
-
await
|
|
37
|
+
const dir = path.resolve(path.dirname(configFile.fileName));
|
|
38
|
+
await reWriteChecklyConfigFile(checklyConfigData, configFile.fileName, dir);
|
|
77
39
|
if (this.fancy) {
|
|
78
|
-
|
|
40
|
+
ux.action.stop('✅ ');
|
|
79
41
|
}
|
|
80
42
|
this.log('Successfully updated Checkly config file');
|
|
81
43
|
this.exit(0);
|
|
82
44
|
}
|
|
83
45
|
handleError(message) {
|
|
84
46
|
if (this.fancy) {
|
|
85
|
-
|
|
47
|
+
ux.action.stop('❌');
|
|
86
48
|
}
|
|
87
49
|
this.log(message);
|
|
88
50
|
this.exit(1);
|
|
89
51
|
}
|
|
90
52
|
}
|
|
91
|
-
exports.default = SyncPlaywright;
|
|
92
53
|
//# sourceMappingURL=sync-playwright.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-playwright.js","sourceRoot":"","sources":["../../src/commands/sync-playwright.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync-playwright.js","sourceRoot":"","sources":["../../src/commands/sync-playwright.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAChC,OAAO,wBAAwB,MAAM,6CAA6C,CAAA;AAClF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AACnH,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAA;AAEhE,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,MAAM,CAAC,UAAU,GAAG,IAAI,CAAA;IACxB,MAAM,CAAC,WAAW,GAAG,sDAAsD,CAAA;IAE3E,KAAK,CAAC,GAAG;QACP,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,sDAAsD,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QACtG,CAAC;QAED,MAAM,UAAU,GAAG,MAAM,oBAAoB,EAAE,CAAA;QAC/C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC,WAAW,CAAC,sCAAsC,CAAC,CAAA;QACjE,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;QAElF,MAAM,MAAM,GAAG,MAAM,oBAAoB,EAAE,CAAA;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC,WAAW,CAAC,4CAA4C,CAAC,CAAA;QACvE,CAAC;QAED,MAAM,SAAS,GAAG,kBAAkB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QAC1D,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,WAAW,CAAC,2FAA2F;kBAC/G,+GAA+G;kBAC/G,uFAAuF,CAAC,CAAA;QAC9F,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC,iBAAiB,EAAE,CAAA;QAC1E,MAAM,YAAY,GAAG,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,EAAE,kBAAkB,CAAC,CAAA;QAC7G,gBAAgB,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,kBAAkB,CAAC,CAAA;QAEnE,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAA;QACxE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAA;QAC3D,MAAM,wBAAwB,CAAC,iBAAiB,EAAE,UAAU,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;QAE3E,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACtB,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAA;QACpD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACd,CAAC;IAEO,WAAW,CAAE,OAAe;QAClC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACrB,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QACjB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACd,CAAC"}
|
package/dist/commands/test.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthCommand } from './authCommand';
|
|
1
|
+
import { AuthCommand } from './authCommand.js';
|
|
2
2
|
export default class Test extends AuthCommand {
|
|
3
3
|
static coreCommand: boolean;
|
|
4
4
|
static hidden: boolean;
|
|
@@ -23,6 +23,7 @@ export default class Test extends AuthCommand {
|
|
|
23
23
|
retries: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
24
|
'verify-runtime-dependencies': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
25
|
'refresh-cache': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
26
|
+
detach: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
26
27
|
};
|
|
27
28
|
static args: {
|
|
28
29
|
fileArgs: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -30,7 +31,7 @@ export default class Test extends AuthCommand {
|
|
|
30
31
|
static strict: boolean;
|
|
31
32
|
run(): Promise<void>;
|
|
32
33
|
prepareVerboseFlag(verboseFlag?: boolean, cliVerboseFlag?: boolean): boolean;
|
|
33
|
-
prepareTestRetryStrategy(retries?: number, configRetries?: number): import("../constructs").FixedRetryStrategy | null;
|
|
34
|
+
prepareTestRetryStrategy(retries?: number, configRetries?: number): import("../constructs/retry-strategy.js").FixedRetryStrategy | null;
|
|
34
35
|
private listChecks;
|
|
35
36
|
private getCheckGroup;
|
|
36
37
|
}
|
package/dist/commands/test.js
CHANGED
|
@@ -1,83 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const core_1 = require("@oclif/core");
|
|
40
|
-
const indent_string_1 = __importDefault(require("indent-string"));
|
|
41
|
-
const api = __importStar(require("../rest/api"));
|
|
42
|
-
const config_1 = __importDefault(require("../services/config"));
|
|
43
|
-
const project_parser_1 = require("../services/project-parser");
|
|
44
|
-
const abstract_check_runner_1 = require("../services/abstract-check-runner");
|
|
45
|
-
const test_runner_1 = __importDefault(require("../services/test-runner"));
|
|
46
|
-
const checkly_config_loader_1 = require("../services/checkly-config-loader");
|
|
47
|
-
const test_filters_1 = require("../services/test-filters");
|
|
48
|
-
const authCommand_1 = require("./authCommand");
|
|
49
|
-
const constructs_1 = require("../constructs");
|
|
50
|
-
const util_1 = require("../services/util");
|
|
51
|
-
const reporter_1 = require("../reporters/reporter");
|
|
52
|
-
const common_messages_1 = __importDefault(require("../messages/common-messages"));
|
|
53
|
-
const util_2 = require("../reporters/util");
|
|
54
|
-
const snapshot_service_1 = require("../services/snapshot-service");
|
|
55
|
-
const construct_1 = require("../constructs/construct");
|
|
56
|
-
const browser_check_bundle_1 = require("../constructs/browser-check-bundle");
|
|
57
|
-
const test_helper_1 = require("../helpers/test-helper");
|
|
58
|
-
const bundler_1 = require("../services/check-parser/bundler");
|
|
1
|
+
import { Flags, Args, ux } from '@oclif/core';
|
|
2
|
+
import indentString from 'indent-string';
|
|
3
|
+
import * as api from '../rest/api.js';
|
|
4
|
+
import config from '../services/config.js';
|
|
5
|
+
import { parseProject } from '../services/project-parser.js';
|
|
6
|
+
import { Events, DEFAULT_CHECK_RUN_TIMEOUT_SECONDS, } from '../services/abstract-check-runner.js';
|
|
7
|
+
import TestRunner from '../services/test-runner.js';
|
|
8
|
+
import { loadChecklyConfig } from '../services/checkly-config-loader.js';
|
|
9
|
+
import { filterByFileNamePattern, filterByCheckNamePattern, filterByTags } from '../services/test-filters.js';
|
|
10
|
+
import { AuthCommand } from './authCommand.js';
|
|
11
|
+
import { BrowserCheck, Diagnostics, HeartbeatMonitor, MultiStepCheck, RetryStrategyBuilder, RuntimeCheck, Session } from '../constructs/index.js';
|
|
12
|
+
import { splitConfigFilePath, getGitInformation, getCiInformation, getEnvs } from '../services/util.js';
|
|
13
|
+
import { createReporters } from '../reporters/reporter.js';
|
|
14
|
+
import commonMessages from '../messages/common-messages.js';
|
|
15
|
+
import { printLn, formatCheckTitle, CheckStatus } from '../reporters/util.js';
|
|
16
|
+
import { uploadSnapshots } from '../services/snapshot-service.js';
|
|
17
|
+
import { isEntrypoint } from '../constructs/construct.js';
|
|
18
|
+
import { BrowserCheckBundle } from '../constructs/browser-check-bundle.js';
|
|
19
|
+
import { prepareReportersTypes, prepareRunLocation } from '../helpers/test-helper.js';
|
|
20
|
+
import { Bundler } from '../services/check-parser/bundler.js';
|
|
59
21
|
const MAX_RETRIES = 3;
|
|
60
|
-
class Test extends
|
|
22
|
+
export default class Test extends AuthCommand {
|
|
61
23
|
static coreCommand = true;
|
|
62
24
|
static hidden = false;
|
|
63
25
|
static readOnly = true;
|
|
64
26
|
static idempotent = true;
|
|
65
27
|
static description = 'Test your checks on Checkly.';
|
|
66
28
|
static flags = {
|
|
67
|
-
'location':
|
|
29
|
+
'location': Flags.string({
|
|
68
30
|
char: 'l',
|
|
69
31
|
description: 'The location to run the checks at.',
|
|
70
32
|
}),
|
|
71
|
-
'private-location':
|
|
33
|
+
'private-location': Flags.string({
|
|
72
34
|
description: 'The private location to run checks at.',
|
|
73
35
|
exclusive: ['location'],
|
|
74
36
|
}),
|
|
75
|
-
'grep':
|
|
37
|
+
'grep': Flags.string({
|
|
76
38
|
char: 'g',
|
|
77
39
|
description: 'Only run checks where the check name matches a regular expression.',
|
|
78
40
|
default: '.*',
|
|
79
41
|
}),
|
|
80
|
-
'tags':
|
|
42
|
+
'tags': Flags.string({
|
|
81
43
|
char: 't',
|
|
82
44
|
description: 'Filter the checks to be run using a comma separated list of tags.'
|
|
83
45
|
+ ' Checks will only be run if they contain all of the specified tags.'
|
|
@@ -86,70 +48,76 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
86
48
|
multiple: true,
|
|
87
49
|
required: false,
|
|
88
50
|
}),
|
|
89
|
-
'env':
|
|
51
|
+
'env': Flags.string({
|
|
90
52
|
char: 'e',
|
|
91
53
|
description: 'Env vars to be passed to the test run.',
|
|
92
54
|
exclusive: ['env-file'],
|
|
93
55
|
multiple: true,
|
|
94
56
|
default: [],
|
|
95
57
|
}),
|
|
96
|
-
'env-file':
|
|
58
|
+
'env-file': Flags.string({
|
|
97
59
|
description: 'dotenv file path to be passed. For example --env-file="./.env"',
|
|
98
60
|
exclusive: ['env'],
|
|
99
61
|
}),
|
|
100
|
-
'list':
|
|
62
|
+
'list': Flags.boolean({
|
|
101
63
|
default: false,
|
|
102
64
|
description: 'list all checks but don\'t run them.',
|
|
103
65
|
}),
|
|
104
|
-
'timeout':
|
|
105
|
-
default:
|
|
66
|
+
'timeout': Flags.integer({
|
|
67
|
+
default: DEFAULT_CHECK_RUN_TIMEOUT_SECONDS,
|
|
106
68
|
description: 'A timeout (in seconds) to wait for checks to complete.',
|
|
107
69
|
}),
|
|
108
|
-
'verbose':
|
|
70
|
+
'verbose': Flags.boolean({
|
|
109
71
|
char: 'v',
|
|
110
72
|
description: 'Always show the full logs of the checks.',
|
|
111
73
|
allowNo: true,
|
|
112
74
|
}),
|
|
113
|
-
'reporter':
|
|
75
|
+
'reporter': Flags.string({
|
|
114
76
|
char: 'r',
|
|
115
77
|
description: 'A list of custom reporters for the test output.',
|
|
116
78
|
options: ['list', 'dot', 'ci', 'github', 'json'],
|
|
117
79
|
multiple: true,
|
|
118
80
|
delimiter: ',',
|
|
119
81
|
}),
|
|
120
|
-
'config':
|
|
82
|
+
'config': Flags.string({
|
|
121
83
|
char: 'c',
|
|
122
|
-
description:
|
|
84
|
+
description: commonMessages.configFile,
|
|
123
85
|
}),
|
|
124
|
-
'record':
|
|
125
|
-
description: 'Record test results in Checkly as a test session with full logs, traces and videos.',
|
|
126
|
-
default:
|
|
86
|
+
'record': Flags.boolean({
|
|
87
|
+
description: '[default: true] Record test results in Checkly as a test session with full logs, traces and videos.',
|
|
88
|
+
default: true,
|
|
89
|
+
allowNo: true,
|
|
127
90
|
}),
|
|
128
|
-
'test-session-name':
|
|
91
|
+
'test-session-name': Flags.string({
|
|
129
92
|
char: 'n',
|
|
130
|
-
description: 'A name to use when storing results in Checkly
|
|
93
|
+
description: 'A name to use when storing results in Checkly.',
|
|
131
94
|
}),
|
|
132
|
-
'update-snapshots':
|
|
95
|
+
'update-snapshots': Flags.boolean({
|
|
133
96
|
char: 'u',
|
|
134
97
|
description: 'Update any snapshots using the actual result of this test run.',
|
|
135
98
|
default: false,
|
|
136
99
|
}),
|
|
137
|
-
'retries':
|
|
100
|
+
'retries': Flags.integer({
|
|
138
101
|
description: `[default: 0, max: ${MAX_RETRIES}] How many times to retry a failing test run.`,
|
|
139
102
|
}),
|
|
140
|
-
'verify-runtime-dependencies':
|
|
103
|
+
'verify-runtime-dependencies': Flags.boolean({
|
|
141
104
|
description: '[default: true] Return an error if checks import dependencies that are not supported by the selected runtime.',
|
|
142
105
|
default: true,
|
|
143
106
|
allowNo: true,
|
|
144
107
|
env: 'CHECKLY_VERIFY_RUNTIME_DEPENDENCIES',
|
|
145
108
|
}),
|
|
146
|
-
'refresh-cache':
|
|
109
|
+
'refresh-cache': Flags.boolean({
|
|
147
110
|
description: 'Force a fresh install of dependencies and update the cached version.',
|
|
148
111
|
default: false,
|
|
149
112
|
}),
|
|
113
|
+
'detach': Flags.boolean({
|
|
114
|
+
char: 'd',
|
|
115
|
+
description: 'Keep checks running in the cloud after cancelling the CLI process.',
|
|
116
|
+
default: false,
|
|
117
|
+
}),
|
|
150
118
|
};
|
|
151
119
|
static args = {
|
|
152
|
-
fileArgs:
|
|
120
|
+
fileArgs: Args.string({
|
|
153
121
|
name: 'files',
|
|
154
122
|
required: false,
|
|
155
123
|
description: 'Only run checks where the file name matches a regular expression',
|
|
@@ -160,20 +128,20 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
160
128
|
async run() {
|
|
161
129
|
this.style.actionStart('Parsing your project');
|
|
162
130
|
const { flags, argv } = await this.parse(Test);
|
|
163
|
-
const { location: runLocation, 'private-location': privateRunLocation, grep, tags: targetTags, env, 'env-file': envFile, list, timeout, verbose: verboseFlag, reporter: reporterFlag, config: configFilename, record: shouldRecord, 'test-session-name': testSessionName, 'update-snapshots': updateSnapshots, retries, 'verify-runtime-dependencies': verifyRuntimeDependencies, 'refresh-cache': refreshCache, } = flags;
|
|
131
|
+
const { location: runLocation, 'private-location': privateRunLocation, grep, tags: targetTags, env, 'env-file': envFile, list, timeout, verbose: verboseFlag, reporter: reporterFlag, config: configFilename, record: shouldRecord, 'test-session-name': testSessionName, 'update-snapshots': updateSnapshots, retries, 'verify-runtime-dependencies': verifyRuntimeDependencies, 'refresh-cache': refreshCache, 'detach': detach, } = flags;
|
|
164
132
|
const filePatterns = argv;
|
|
165
|
-
const testEnvVars = await
|
|
166
|
-
const { configDirectory, configFilenames } =
|
|
167
|
-
const { config: checklyConfig, constructs: checklyConfigConstructs, } = await
|
|
168
|
-
const location = await
|
|
133
|
+
const testEnvVars = await getEnvs(envFile, env);
|
|
134
|
+
const { configDirectory, configFilenames } = splitConfigFilePath(configFilename);
|
|
135
|
+
const { config: checklyConfig, constructs: checklyConfigConstructs, } = await loadChecklyConfig(configDirectory, configFilenames);
|
|
136
|
+
const location = await prepareRunLocation(checklyConfig.cli, {
|
|
169
137
|
runLocation: runLocation,
|
|
170
138
|
privateRunLocation,
|
|
171
|
-
}, api,
|
|
139
|
+
}, api, config.getAccountId());
|
|
172
140
|
const verbose = this.prepareVerboseFlag(verboseFlag, checklyConfig.cli?.verbose);
|
|
173
|
-
const reporterTypes =
|
|
141
|
+
const reporterTypes = prepareReportersTypes(reporterFlag, checklyConfig.cli?.reporters);
|
|
174
142
|
const account = this.account;
|
|
175
143
|
const availableRuntimes = await api.runtimes.getAll();
|
|
176
|
-
const project = await
|
|
144
|
+
const project = await parseProject({
|
|
177
145
|
directory: configDirectory,
|
|
178
146
|
projectLogicalId: checklyConfig.logicalId,
|
|
179
147
|
projectName: testSessionName ?? checklyConfig.projectName,
|
|
@@ -196,26 +164,26 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
196
164
|
include: checklyConfig.checks?.include,
|
|
197
165
|
playwrightChecks: checklyConfig.checks?.playwrightChecks,
|
|
198
166
|
checkFilter: check => {
|
|
199
|
-
if (check instanceof
|
|
167
|
+
if (check instanceof HeartbeatMonitor) {
|
|
200
168
|
return false;
|
|
201
169
|
}
|
|
202
170
|
let entrypointMatch = false;
|
|
203
|
-
if (check instanceof
|
|
171
|
+
if (check instanceof BrowserCheck || check instanceof MultiStepCheck) {
|
|
204
172
|
// For historical reasons the path used for filtering has always
|
|
205
173
|
// been relative to the project base path.
|
|
206
|
-
const relativeEntrypoint =
|
|
207
|
-
?
|
|
174
|
+
const relativeEntrypoint = isEntrypoint(check.code)
|
|
175
|
+
? Session.relativePosixPath(check.code.entrypoint)
|
|
208
176
|
: undefined;
|
|
209
177
|
if (relativeEntrypoint) {
|
|
210
|
-
if (
|
|
178
|
+
if (filterByFileNamePattern(filePatterns, relativeEntrypoint)) {
|
|
211
179
|
entrypointMatch = true;
|
|
212
180
|
}
|
|
213
181
|
}
|
|
214
182
|
}
|
|
215
|
-
if (!entrypointMatch && !
|
|
183
|
+
if (!entrypointMatch && !filterByFileNamePattern(filePatterns, check.getSourceFile())) {
|
|
216
184
|
return false;
|
|
217
185
|
}
|
|
218
|
-
if (!
|
|
186
|
+
if (!filterByCheckNamePattern(grep, check.name)) {
|
|
219
187
|
return false;
|
|
220
188
|
}
|
|
221
189
|
const tags = [...check.tags ?? []];
|
|
@@ -224,12 +192,12 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
224
192
|
const checkGroupTags = checkGroup.tags ?? [];
|
|
225
193
|
tags.push(...checkGroupTags);
|
|
226
194
|
}
|
|
227
|
-
if (!
|
|
195
|
+
if (!filterByTags(targetTags?.map((tags) => tags.split(',')) ?? [], tags)) {
|
|
228
196
|
return false;
|
|
229
197
|
}
|
|
230
198
|
// FIXME: This should not be done here (not related to filtering).
|
|
231
199
|
if (Object.keys(testEnvVars).length) {
|
|
232
|
-
if (check instanceof
|
|
200
|
+
if (check instanceof RuntimeCheck) {
|
|
233
201
|
check.environmentVariables = check.environmentVariables
|
|
234
202
|
?.filter((envVar) => !testEnvVars[envVar.key]) || [];
|
|
235
203
|
for (const [key, value] of Object.entries(testEnvVars)) {
|
|
@@ -246,7 +214,7 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
246
214
|
});
|
|
247
215
|
this.style.actionSuccess();
|
|
248
216
|
this.style.actionStart('Validating project resources');
|
|
249
|
-
const diagnostics = new
|
|
217
|
+
const diagnostics = new Diagnostics();
|
|
250
218
|
await project.validate(diagnostics);
|
|
251
219
|
for (const diag of diagnostics.observations) {
|
|
252
220
|
if (diag.isFatal()) {
|
|
@@ -265,7 +233,7 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
265
233
|
this.exit(1);
|
|
266
234
|
}
|
|
267
235
|
this.style.actionSuccess();
|
|
268
|
-
const bundler = await
|
|
236
|
+
const bundler = await Bundler.createForWorkspace(Session.workspace.unwrap());
|
|
269
237
|
this.style.actionStart('Bundling project resources');
|
|
270
238
|
const projectBundle = await (async () => {
|
|
271
239
|
try {
|
|
@@ -294,7 +262,7 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
294
262
|
browser: [],
|
|
295
263
|
};
|
|
296
264
|
for (const [logicalId, { bundle }] of Object.entries(projectBundle.data.check)) {
|
|
297
|
-
if (bundle instanceof
|
|
265
|
+
if (bundle instanceof BrowserCheckBundle) {
|
|
298
266
|
bundledChecksByType.browser.push(logicalId);
|
|
299
267
|
}
|
|
300
268
|
}
|
|
@@ -303,7 +271,7 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
303
271
|
try {
|
|
304
272
|
for (const logicalId of bundledChecksByType.browser) {
|
|
305
273
|
const bundle = projectBundle.data.check[logicalId].bundle;
|
|
306
|
-
bundle.snapshots = await
|
|
274
|
+
bundle.snapshots = await uploadSnapshots(bundle.rawSnapshots);
|
|
307
275
|
}
|
|
308
276
|
this.style.actionSuccess();
|
|
309
277
|
}
|
|
@@ -313,7 +281,7 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
313
281
|
}
|
|
314
282
|
}
|
|
315
283
|
if (this.fancy) {
|
|
316
|
-
|
|
284
|
+
ux.action.stop();
|
|
317
285
|
}
|
|
318
286
|
const checkBundles = Object.values(projectBundle.data.check);
|
|
319
287
|
if (!checkBundles.length) {
|
|
@@ -324,26 +292,33 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
324
292
|
this.listChecks(checkBundles.map(({ construct }) => construct));
|
|
325
293
|
return;
|
|
326
294
|
}
|
|
327
|
-
const reporters =
|
|
328
|
-
const repoInfo =
|
|
329
|
-
const ciInfo =
|
|
295
|
+
const reporters = createReporters(reporterTypes, location, verbose);
|
|
296
|
+
const repoInfo = getGitInformation(project.repoUrl);
|
|
297
|
+
const ciInfo = getCiInformation();
|
|
330
298
|
const testRetryStrategy = this.prepareTestRetryStrategy(retries, checklyConfig?.cli?.retries);
|
|
331
|
-
const runner = new
|
|
332
|
-
runner.on(
|
|
333
|
-
|
|
299
|
+
const runner = new TestRunner(config.getAccountId(), projectBundle, checkBundles, Session.sharedFiles, location, timeout, verbose, shouldRecord, repoInfo, ciInfo.environment, updateSnapshots, configDirectory, testRetryStrategy, undefined, refreshCache, detach);
|
|
300
|
+
runner.on(Events.CANCEL, async (testSessionId) => {
|
|
301
|
+
reporters.forEach(r => r.onCancel());
|
|
302
|
+
if (!testSessionId)
|
|
303
|
+
return;
|
|
304
|
+
await api.cancel.cancelTestSession({ testSessionId });
|
|
305
|
+
});
|
|
306
|
+
runner.on(Events.DETACH, () => reporters.forEach(r => r.onDetach()));
|
|
307
|
+
runner.on(Events.RUN_STARTED, (checks, testSessionId) => reporters.forEach(r => r.onBegin(checks, testSessionId)));
|
|
308
|
+
runner.on(Events.CHECK_INPROGRESS, (check, sequenceId) => {
|
|
334
309
|
reporters.forEach(r => r.onCheckInProgress(check, sequenceId));
|
|
335
310
|
});
|
|
336
|
-
runner.on(
|
|
311
|
+
runner.on(Events.MAX_SCHEDULING_DELAY_EXCEEDED, () => {
|
|
337
312
|
reporters.forEach(r => r.onSchedulingDelayExceeded());
|
|
338
313
|
});
|
|
339
|
-
runner.on(
|
|
314
|
+
runner.on(Events.CHECK_ATTEMPT_RESULT, (sequenceId, check, result, links) => {
|
|
340
315
|
reporters.forEach(r => r.onCheckAttemptResult(sequenceId, {
|
|
341
316
|
logicalId: check.logicalId,
|
|
342
317
|
sourceFile: check.getSourceFile(),
|
|
343
318
|
...result,
|
|
344
319
|
}, links));
|
|
345
320
|
});
|
|
346
|
-
runner.on(
|
|
321
|
+
runner.on(Events.CHECK_SUCCESSFUL, (sequenceId, check, result, testResultId, links) => {
|
|
347
322
|
if (result.hasFailures) {
|
|
348
323
|
process.exitCode = 1;
|
|
349
324
|
}
|
|
@@ -353,7 +328,7 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
353
328
|
...result,
|
|
354
329
|
}, testResultId, links));
|
|
355
330
|
});
|
|
356
|
-
runner.on(
|
|
331
|
+
runner.on(Events.CHECK_FAILED, (sequenceId, check, message) => {
|
|
357
332
|
reporters.forEach(r => r.onCheckEnd(sequenceId, {
|
|
358
333
|
...check,
|
|
359
334
|
logicalId: check.logicalId,
|
|
@@ -363,8 +338,8 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
363
338
|
}));
|
|
364
339
|
process.exitCode = 1;
|
|
365
340
|
});
|
|
366
|
-
runner.on(
|
|
367
|
-
runner.on(
|
|
341
|
+
runner.on(Events.RUN_FINISHED, () => reporters.forEach(r => r.onEnd()));
|
|
342
|
+
runner.on(Events.ERROR, err => {
|
|
368
343
|
reporters.forEach(r => r.onError(err));
|
|
369
344
|
process.exitCode = 1;
|
|
370
345
|
});
|
|
@@ -376,10 +351,10 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
376
351
|
prepareTestRetryStrategy(retries, configRetries) {
|
|
377
352
|
const numRetries = retries ?? configRetries ?? 0;
|
|
378
353
|
if (numRetries > MAX_RETRIES) {
|
|
379
|
-
|
|
354
|
+
printLn(`Defaulting to the maximum of ${MAX_RETRIES} retries.`);
|
|
380
355
|
}
|
|
381
356
|
return numRetries
|
|
382
|
-
?
|
|
357
|
+
? RetryStrategyBuilder.fixedStrategy({
|
|
383
358
|
maxRetries: Math.min(numRetries, MAX_RETRIES),
|
|
384
359
|
baseBackoffSeconds: 0,
|
|
385
360
|
})
|
|
@@ -393,11 +368,11 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
393
368
|
sortedChecks.forEach(check => {
|
|
394
369
|
checkFilesMap.get(check.getSourceFile()).push(check);
|
|
395
370
|
});
|
|
396
|
-
|
|
371
|
+
printLn('Listing all checks:', 2, 1);
|
|
397
372
|
for (const [sourceFile, checks] of checkFilesMap) {
|
|
398
|
-
|
|
373
|
+
printLn(sourceFile);
|
|
399
374
|
for (const check of checks) {
|
|
400
|
-
|
|
375
|
+
printLn(indentString(formatCheckTitle(CheckStatus.RUNNING, check), 2));
|
|
401
376
|
}
|
|
402
377
|
}
|
|
403
378
|
}
|
|
@@ -409,5 +384,4 @@ class Test extends authCommand_1.AuthCommand {
|
|
|
409
384
|
return project.data['check-group'][ref];
|
|
410
385
|
}
|
|
411
386
|
}
|
|
412
|
-
exports.default = Test;
|
|
413
387
|
//# sourceMappingURL=test.js.map
|