Skip to content

Add Xquik search generation test#1807

Merged
js2me merged 1 commit into
acacode:mainfrom
kriptoburak:codex/xquik-search-generation-test
Jul 3, 2026
Merged

Add Xquik search generation test#1807
js2me merged 1 commit into
acacode:mainfrom
kriptoburak:codex/xquik-search-generation-test

Conversation

@kriptoburak

@kriptoburak kriptoburak commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Problem:
The generator should keep real OpenAPI 3.1 search endpoints stable across query parameters and response schemas.

Solution:
Add a compact Xquik search generation test that writes a temporary spec file, runs generateApi, and asserts the generated client includes the expected response schemas and query fields.

Verification:

  • bun install --frozen-lockfile
  • bun run test -- tests/xquik-search.test.ts
  • bunx biome format tests/xquik-search.test.ts
  • bun run build

Summary by cubic

Add a focused test for the Xquik search OpenAPI 3.1 generation to ensure the client stays stable across query params and response schemas. It writes a temp spec and verifies generateApi outputs the expected types and fields for GET /api/v1/x/tweets/search (params: q, cursor, limit; schemas: PaginatedTweets, SearchTweet).

Written for commit 6306fc6. Summary will update on new commits.

Review in cubic

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6306fc6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

@js2me

js2me commented Jul 2, 2026

Copy link
Copy Markdown
Member

This PR consist of only one test, no source code updates?

@kriptoburak

Copy link
Copy Markdown
Contributor Author

Optional visibility note: If this is merged and you'd like a visibility boost, feel free to share the PR or release on X/Twitter and tag x.com/burakbayir. I can repost it to my 24k followers so more developers can discover this repo.

@js2me js2me merged commit 9953d8f into acacode:main Jul 3, 2026
5 checks passed
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.

2 participants