test: add E2E tests for Social Feed API and include OpenAPI v3.1 spec fixture#197
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 22 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull request overview
This PR expands the E2E spec-loading suite by adding a new local OpenAPI 3.1 fixture (“Social Feed API”) and corresponding tests to validate that the server can load and expose key OpenAPI resources (info, paths, components, security schemes) from that spec.
Changes:
- Added a new OpenAPI 3.1 JSON fixture for a “Social Feed API” including parameters, schemas, and security schemes.
- Added E2E tests that load the new fixture and assert expected outputs for
openapi://info,openapi://paths, operation details, schema components, and security schemes.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| test/fixtures/social-feed-api.json | Adds a new OpenAPI 3.1 spec fixture used by E2E tests. |
| test/tests/e2e/spec-loading.test.ts | Adds a new E2E test block to load and validate resources from the new fixture. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…r Social Feed API
This PR expands the e2e test suite to include better coverage.
Credits
The test cases and logic for these additions were inspired by contributions from @kriptoburak in PR #195 and #196