Skip to content

test: add e2e tests for login/logout commands [gh-0] #1873

test: add e2e tests for login/logout commands [gh-0]

test: add e2e tests for login/logout commands [gh-0] #1873

Triggered via pull request August 2, 2023 03:32
Status Failure
Total duration 7m 22s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 10 warnings
login › should show warning with environment variables are configured: packages/cli/e2e/__tests__/login.spec.ts#L20
expect(received).toContain(expected) // indexOf Expected substring: " › Warning: `CHECKLY_API_KEY` or `CHECKLY_ACCOUNT_ID` environment variables· › are configured. You must delete them to use `npx checkly login`. " Received string: " » Warning: `CHECKLY_API_KEY` or `CHECKLY_ACCOUNT_ID` environment variables· » are configured. You must delete them to use `npx checkly login`. " at Object.<anonymous> (e2e/__tests__/login.spec.ts:20:20)
login › should show URL to signup: packages/cli/e2e/__tests__/login.spec.ts#L60
expect(received).toBe(expected) // Object.is equality Expected: "" Received: " Error: Unable to start a local server on port 4242. Please check that· `checkly login` isn't already running in a separate tab. On OS X and· Linux, you can run `lsof -i :4242` to see which process is blocking the· port. " at Object.<anonymous> (e2e/__tests__/login.spec.ts:60:20)
test - windows-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/test.ts#L317
Forbidden non-null assertion
lint: packages/cli/src/commands/test.ts#L319
Forbidden non-null assertion