Tnolet/update examples and readmes #2056
Annotations
5 errors and 10 warnings
test › Should run snapshot tests:
packages/cli/e2e/__tests__/test.spec.ts#L171
expect(received).toContain(expected) // indexOf
Expected substring: "e33728eb-59f7-46f4-a97b-b0fb76f8af46"
Received string: "
Notice: replacing version '0.0.1-dev' with latest '4.4.0'.·
Parsing your project...
Parsing your project... ⣾
Parsing your project... ⣽
Parsing your project... ⣻
Parsing your project... ⢿
Parsing your project... ⡿
Parsing your project... ⣟
Parsing your project... ⣯
Parsing your project... ⣷
Parsing your project... ⣾
Parsing your project... ⣽
Parsing your project... ⣻
Parsing your project... ⢿
Parsing your project... ⡿
Parsing your project... ⣟
Parsing your project... ⣯
Parsing your project... ⣷
Parsing your project... done·
Running 1 checks in us-east-1.·
snapshot-test.spec.ts
~ snapshot-test.spec.ts·
1 scheduling, 1 total··
snapshot-test.spec.ts
- snapshot-test.spec.ts·
1 running, 1 total··
✖ snapshot-test.spec.ts (7s)·
──Logs──────────────────────────────────────────────────────────────────────
11:23:16 DEBUG Starting job
11:23:16 DEBUG Creating runtime using version 2023.09
11:23:17 DEBUG Running Playwright test script
11:23:18 INFO Running 1 test using 1 worker
11:23:20 INFO [1/1] [chromium] › test.spec.js › WWW Snapshot Test
11:23:22 INFO 1) [chromium] › ../../checkly/functions/src/2023-09/node_modules/vm2/lib/bridge.js:485:11 › WWW Snapshot Test··
Error: Screenshot comparison failed:·
28276 pixels (ratio 0.04 of all image pixels) are different.·
Call log:
- expect.toHaveScreenshot with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- 28276 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- captured a stable screenshot
- 28276 pixels (ratio 0.04 of all image pixels) are different.·
Expected: /tmp/5lz1rwv1lq3onl87/script.spec.js-snapshots/WWW-Snapshot-Test-1-chromium-linux.png
Received: /tmp/5lz1rwv1lq3onl87/artifacts/script-www-snapshot-test-chromium/WWW-Snapshot-Test-1-actual.png
Diff: /tmp/5lz1rwv1lq3onl87/artifacts/script-www-snapshot-test-chromium/WWW-Snapshot-Test-1-diff.png·
at ../../../../../../../tmp/5lz1rwv1lq3onl87/snapshot-test.spec.ts:9:36·
attachment #1: WWW-Snapshot-Test-1-expected.png (image/png) ────────────────────────────────────
script.spec.js-snapshots/WWW-Snapshot-Test-1-chromium-linux.png
────────────────────────────────────────────────────────────────────────────────────────────────·
attachment #2: WWW-Snapshot-Test-1-actual.png (image/png) ──────────────────────────────────────
artifacts/script-www-snapshot-test-chromium/WWW-Snapshot-Test-1-actual.png
────────────────────────────────────────────────────────────────────────────────────────────────·
attachment #3: WWW-Snapshot-Test-1-diff.png (image/png) ────────────────────────────────────────
artifacts/script-www-snapshot-test-chromium/WWW-Snapshot-Test-1-diff.png
────────────────────────────────────────────────────────────────────────────────────────────────·
attachment #4: video (video/webm) ──────────────────────────────────────────────────────────────
artifacts/videos/www-snapshot-test-1702466602701.webm
────────────────────────────────────────────────────────────────────────────────────────────────·
attachment #5: trace (application/zip) ─────────────────────────────────────────────────────────
artifacts/script-www-snapshot-test-chromium/trace.zip
Usage:·
npx playwright show-trace artifacts/script-www-snapshot-test-chromium/trace.zip·
────────────────────────────────────────────────────────────────────────────────────────────────
11:23:22 INFO 1 failed
[chromium] › ../../checkly/functions/src/2023-09/node_modules/vm2/lib/bridge.js:485:11 › WWW Snapshot Test
11:23:22
|
bootstrap › Should create project with advanced-project template:
packages/create-cli/e2e/__tests__/bootstrap.spec.ts#L84
expect(received).toContain(expected) // indexOf
Expected substring: "installing packages"
Received string: "
Notice: replacing version '0.0.1-dev' with latest '4.4.0'.·
checkly v4.4.0 Build and Run Synthetics That Scale·
Hi there! Let's get you started on your monitoring as code journey!·
◼ Cool. Your project will be created in the directory \"/home/runner/work/checkly-cli/checkly-cli/packages/create-cli/e2e/__tests__/fixtures/empty-project/e2e-test-project-f93fb8a2-278a-4f96-ad0f-e95ce28ae7bc\"·
- Downloading example template...
✔ Example template copied!
- Installing packages
✔ Packages installed successfully·
next All done. Time to get testing & monitoring with Checkly·
> Enter your project directory using cd /home/runner/work/checkly-cli/checkly-cli/packages/create-cli/e2e/__tests__/fixtures/empty-project/e2e-test-project-f93fb8a2-278a-4f96-ad0f-e95ce28ae7bc
> Run npx checkly login to login to your Checkly account
> Run npx checkly test to dry run your checks
> Run npx checkly deploy to deploy your checks to the Checkly cloud·
Questions?·
- Check the docs at https://checklyhq.com/docs/cli
- Join the Checkly Slack community at https://checklyhq.com/slack·
"
at Object.<anonymous> (e2e/__tests__/bootstrap.spec.ts:84:20)
|
test - ubuntu-latest
Process completed with exit code 1.
|
test - windows-latest
The job was canceled because "ubuntu-latest" failed.
|
test - windows-latest
The operation was canceled.
|
lint:
packages/cli/e2e/__tests__/fixtures/deploy-esm-project/api.check.mjs#L3
'api' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/esm-module/checks.check.ts#L3
'browserCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/snapshot-project-missing-snapshots/checkly.config.ts#L5
Forbidden non-null assertion
|
lint:
packages/cli/e2e/__tests__/fixtures/snapshot-project/checkly.config.ts#L5
Forbidden non-null assertion
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/__checks__/group.check.ts#L22
'browserCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/__checks__/heartbeat.check.ts#L3
'heartbeat' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/__checks__/secret.check.ts#L3
'browserCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/services/api/api.check.ts#L4
'apiCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/services/api/api.check.ts#L21
'skipSslApiCheck' is assigned a value but never used
|
lint:
packages/cli/e2e/__tests__/fixtures/test-project/src/services/api/typo.checkz.ts#L3
'apiCheck' is assigned a value but never used
|