Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add e2e snapshot tests #885

Merged
merged 1 commit into from Nov 8, 2023
Merged

Conversation

clample
Copy link
Collaborator

@clample clample commented Nov 7, 2023

I hereby confirm that I followed the code guidelines found at engineering guidelines

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

This PR simply adds some e2e tests for npx checkly deploy and npx checkly test with snapshots. This should help us avoid regressions in the feature.

env: { PROJECT_LOGICAL_ID: projectLogicalId },
})
expect(result.status).toBe(0)
// TODO: Add assertions that the snapshots are successfully uploaded.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't expose the check.snapshots from the public API, so we can't do a stronger assertion at the moment. Still, I think that it makes sense to put the basic test in place and make sure checkly deploy doesn't error.

Copy link
Member

@umutuzgur umutuzgur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clample clample merged commit 6d5a909 into main Nov 8, 2023
3 checks passed
@clample clample deleted the chrislample/e2e-snapshot-tests branch November 8, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants