Skip to content

Fix missing TestSuite type export and unused parameter warnings in QA module#470

Merged
hotlong merged 2 commits into
copilot/improve-hub-protocol-managementfrom
copilot/fix-data-processing-bug
Feb 2, 2026
Merged

Fix missing TestSuite type export and unused parameter warnings in QA module#470
hotlong merged 2 commits into
copilot/improve-hub-protocol-managementfrom
copilot/fix-data-processing-bug

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 2, 2026

TypeScript compilation was failing with TS2724 (missing export) and TS6133 (unused variable) errors in the QA testing infrastructure.

Changes

  • packages/spec/src/qa/testing.zod.ts: Export TestSuite type alongside other test types (TestScenario, TestStep, etc.). The schema was defined but the type wasn't exported, breaking imports in @objectstack/core.

  • packages/core/src/qa/{http-adapter,runner}.ts: Prefix unused context parameters with underscore. The interface requires these parameters for future variable interpolation, but current implementations don't use them yet.

// Before: TS6133 error
async execute(action: QA.TestAction, context: Record<string, unknown>): Promise<unknown>

// After: Satisfies TypeScript strict mode
async execute(action: QA.TestAction, _context: Record<string, unknown>): Promise<unknown>
Original prompt

引用: https://github.com/objectstack-ai/spec/actions/runs/21574393632/job/62159493586#step:8:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Feb 2, 2026 2:01am

Request Review

- Add missing TestSuite type export in testing.zod.ts
- Prefix unused context parameters with underscore to satisfy TS6133
- All packages now compile successfully

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix data processing bug in workflow Fix missing TestSuite type export and unused parameter warnings in QA module Feb 2, 2026
Copilot AI requested a review from hotlong February 2, 2026 02:01
@github-actions github-actions Bot added documentation Improvements or additions to documentation size/m labels Feb 2, 2026
@hotlong hotlong marked this pull request as ready for review February 2, 2026 03:16
Copilot AI review requested due to automatic review settings February 2, 2026 03:16
@hotlong hotlong merged commit 73ffbb1 into copilot/improve-hub-protocol-management Feb 2, 2026
7 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes TypeScript compilation errors in the QA testing infrastructure by addressing a missing type export and unused parameter warnings. The changes enable strict TypeScript compilation for the test framework.

Changes:

  • Export TestSuite type from the QA testing schema to enable proper imports in dependent packages
  • Prefix unused context parameters with underscores in test execution adapters to satisfy TypeScript strict mode
  • Add auto-generated JSON schemas and documentation for new hub federation and plugin security features

Reviewed changes

Copilot reviewed 64 out of 64 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/spec/src/qa/testing.zod.ts Adds missing TestSuite type export to match other exported test types
packages/core/src/qa/runner.ts Prefixes unused context parameters in resolveVariables and assert methods
packages/core/src/qa/http-adapter.ts Prefixes unused context parameter in execute method
packages/spec/json-schema/hub/*.json Auto-generated JSON schemas for hub federation and security types
packages/spec/json-schema/api/*.json Auto-generated JSON schemas for hub API request/response types
content/docs/references/hub/meta.json Adds hub-federation and plugin-security to documentation navigation
content/docs/references/hub/index.mdx Adds cards for hub-federation and plugin-security documentation
content/docs/references/api/meta.json Adds hub API to documentation navigation
content/docs/references/api/index.mdx Adds card for hub API documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants