test: collapse schema enumeration tests and remove duplicates#1087
test: collapse schema enumeration tests and remove duplicates#1087
Conversation
|
The PR description says these Concretely, after this PR nothing verifies:
A few options:
|
|
Removing the Since this is a negative assertion (a flag was removed and shouldn't come back), it's exactly the kind of thing a smoke test can't replace. Please either keep this test or relocate the assertion into |
|
The PR description asserts "No coverage regression for
Options:
FWIW, the other collapsed enums ( |
Coverage Report
|
|
Good catch — restored the deploy/dev help flag assertions and the |
|
Addressed: replaced the representative-sample tests with |
2e7ac63 to
1ec6c4d
Compare
…t tests Collapse it.each per-value enumeration patterns into consolidated tests across 9 schema test files. Each enum value was tested individually (e.g., 4 separate 'accepts SEMANTIC', 'accepts SUMMARIZATION' tests) -- now represented by 1-2 tests with representative values. Remove deploy/dev --help unit tests (covered by integ-tests/help.test.ts) and 5 it.todo placeholders from credential-ops.test.ts. Schema tests: ~506 -> ~415. All cross-field validation, superRefine, boundary, and discriminated union tests preserved.
…sertions - Restore deploy --help and dev --help flag-level assertions (integ smoke test only checks exit code and "Usage:", not specific flags) - Restore --invoke negative regression guard in dev.test.ts - Replace representative-sample enum tests with .options assertions for AgentCoreRegionSchema and GatewayTargetTypeSchema (catches accidental removal of enum values)
1ec6c4d to
5c66797
Compare
Summary
it.eachper-value enumeration patterns into consolidated tests across 9 schema test files (constants, agent-env, agentcore-project, aws-targets, deployed-state, mcp-defs, mcp, evaluator, memory)--helpunit tests already covered byinteg-tests/help.test.tsit.todoplaceholders from credential-ops.test.tsSchema tests: ~506 → ~415. All cross-field validation (
superRefine), boundary, and discriminated union tests preserved.Test plan
npm testpasses — schema subset verified locally (415 tests), full suite should pass in CIsrc/schema/(tests collapsed, not deleted — same code paths covered)