Skip to content

chore: create-cli cleanup #1863

chore: create-cli cleanup

chore: create-cli cleanup #1863

Re-run triggered August 1, 2023 14:09
Status Cancelled
Total duration 1m 9s
Artifacts

test.yml

on: pull_request
Matrix: test-cli
Matrix: test-create-cli
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 10 warnings
bootstrap › Should create project with advanced-project template: packages/create-cli/e2e/__tests__/bootstrap.spec.ts#L23
expect(received).toContain(expected) // indexOf Expected substring: "Hi ! Let's get you started on your monitoring as code journey!" Received string: " checkly v4.0.13 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-33dc9e67-f73a-4e7c-92b5-609de6119fce\"· - 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-33dc9e67-f73a-4e7c-92b5-609de6119fce > 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 expectVersionAndName (e2e/__tests__/bootstrap.spec.ts:23:32) at Object.<anonymous> (e2e/__tests__/bootstrap.spec.ts:66:5)
bootstrap › Should create an boilerplate-project without installing dependencies: packages/create-cli/e2e/__tests__/bootstrap.spec.ts#L23
expect(received).toContain(expected) // indexOf Expected substring: "Hi ! Let's get you started on your monitoring as code journey!" Received string: " checkly v4.0.13 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-6d6ebeea-a62e-4aae-a787-68f2603f437a\"· - Downloading example template... ✔ Example template copied! ◼ No worries. Just remember to install the dependencies after this setup·· 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-6d6ebeea-a62e-4aae-a787-68f2603f437a > 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 expectVersionAndName (e2e/__tests__/bootstrap.spec.ts:23:32) at Object.<anonymous> (e2e/__tests__/bootstrap.spec.ts:91:5)
bootstrap › Should fail for already initiated project: packages/create-cli/e2e/__tests__/bootstrap.spec.ts#L23
expect(received).toContain(expected) // indexOf Expected substring: "Hi ! Let's get you started on your monitoring as code journey!" Received string: " checkly v4.0.13 Build and Run Synthetics That Scale· Hi there! Let's get you started on your monitoring as code journey!· " at expectVersionAndName (e2e/__tests__/bootstrap.spec.ts:23:32) at Object.<anonymous> (e2e/__tests__/bootstrap.spec.ts:124:5)
bootstrap › Should create projects with all available templates (without installing dependencies): packages/create-cli/e2e/__tests__/bootstrap.spec.ts#L23
expect(received).toContain(expected) // indexOf Expected substring: "Hi ! Let's get you started on your monitoring as code journey!" Received string: " checkly v4.0.13 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-4292de15-a626-4a8f-a7c6-82a42788ca12\"· - Downloading example template... ✔ Example template copied! ◼ No worries. Just remember to install the dependencies after this setup·· 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-4292de15-a626-4a8f-a7c6-82a42788ca12 > 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 expectVersionAndName (e2e/__tests__/bootstrap.spec.ts:23:32) at e2e/__tests__/bootstrap.spec.ts:153:7 at Array.forEach (<anonymous>) at Object.<anonymous> (e2e/__tests__/bootstrap.spec.ts:143:24)
bootstrap › Should create a project with --template argument: packages/create-cli/e2e/__tests__/bootstrap.spec.ts#L23
expect(received).toContain(expected) // indexOf Expected substring: "Hi ! Let's get you started on your monitoring as code journey!" Received string: " checkly v4.0.13 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-9caf1b40-4e1a-4ee2-9c75-74f2fcdd4d3f\"· - Downloading example template... ✔ Example template copied! ◼ No worries. Just remember to install the dependencies after this setup·· 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-9caf1b40-4e1a-4ee2-9c75-74f2fcdd4d3f > 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 expectVersionAndName (e2e/__tests__/bootstrap.spec.ts:23:32) at Object.<anonymous> (e2e/__tests__/bootstrap.spec.ts:192:5)
test create-cli - ubuntu-latest
Process completed with exit code 1.
test create-cli - windows-latest
The job was canceled because "ubuntu-latest" failed.
test create-cli - windows-latest
The operation was canceled.
test - windows-latest
The job was canceled because "ubuntu-latest" failed.
test - windows-latest
The operation was canceled.
loadChecklyConfig() › config TS file should export an object: packages/cli/src/services/util.ts#L62
Error loading file /home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/__tests__/fixtures/configs/good-config.ts at loadTsFile (src/services/util.ts:62:15) at async loadChecklyConfig (src/services/checkly-config-loader.ts:38:18) at async Object.<anonymous> (src/services/__tests__/checkly-config-loader.spec.ts:38:29)
loadChecklyConfig() › config from absolute path: packages/cli/src/services/util.ts#L62
Error loading file /home/runner/work/checkly-cli/checkly-cli/packages/cli/src/services/__tests__/fixtures/configs/good-config.ts at loadTsFile (src/services/util.ts:62:15) at async loadChecklyConfig (src/services/checkly-config-loader.ts:38:18) at async Object.<anonymous> (src/services/__tests__/checkly-config-loader.spec.ts:70:29)
test - ubuntu-latest
Process completed with exit code 1.
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/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__/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
lint: packages/cli/src/commands/switch.ts#L3
'prompts' is defined but never used
lint: packages/cli/src/commands/test.ts#L317
Forbidden non-null assertion