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

Chore/increase client api test coverage #8950

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

FredrikOseberg
Copy link
Contributor

Added more tests around specific plans. Also added snapshot as per our conversation @gastonfournier, but I'm unsure how much value it will give because it seems that the tests should already catch this using respondWithValidation and the OpenAPI schema. The problem here is that empty array is a valid state, so there were no reason for the schema to break the tests.

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 11:23am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Dec 11, 2024 11:23am

Copy link
Contributor

github-actions bot commented Dec 10, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link
Contributor

@FredrikOseberg, core features have been modified in this pull request. Please review carefully!

@gastonfournier
Copy link
Contributor

I think the snapshot helps us to identify if we are:

  1. Adding a new field to the response
  2. Removing a field from the response
  3. Filtering out something

I think this is a good improvement, but I'd like to know if this would have helped us detect that there was something off with the PR #8856

@FredrikOseberg
Copy link
Contributor Author

I think the snapshot helps us to identify if we are:

  1. Adding a new field to the response
  2. Removing a field from the response
  3. Filtering out something

I think this is a good improvement, but I'd like to know if this would have helped us detect that there was something off with the PR #8856

Confirmed that they will catch these cases in the future as long as we don't use a special variable to ignore the property in tests.

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM

@FredrikOseberg FredrikOseberg merged commit 7c646bc into main Dec 12, 2024
12 checks passed
@FredrikOseberg FredrikOseberg deleted the chore/increase-client-api-test-coverage branch December 12, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants