test(teams): drop the case the contract tests already pin - #393
Merged
Merged
Conversation
The read-port shape case leaves the section suite. Its runtime assertions are the port's key list and the presence of three helpers, which test/sections/setup-section.test.ts and the registry suite pin generically; its compile-time pins move to the canonical case in test/sections.
Contributor
File size check0 over a hard cap (fails), 31 warning(s).
Split the file, wrap the line, shorten or exempt the comment, or list the path in 5 managed file(s) skipped; repo-platform owns them. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The replacement contract coverage is not present on this branch, leaving the teams read-port shape unpinned.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Removes a teams read-port shape test intended to be covered by shared contract tests.
Changes:
- Deletes one teams read-port contract case.
- Reduces teams test cases from 10 to 9.
| File | Description |
|---|---|
src/sections/teams/teams.test.ts |
Removes the read-port shape test. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Before / After
src/sections/teams/teams.test.tsHow
One shape case leaves; its compile-time pins move to the canonical case in
test/sections.Its runtime assertions are the port's key list and the presence of three helpers every other case here calls.
The key list is pinned for every section by the canonical read-port case in
test/sections/contract.test.ts("the port exposes exactly the declared reads of every section, each narrowed to its posture, and neither a write role nor the raw client").Control: flipping the list's
notFoundposture insrc/sections/teams/index.tsleft this file green (9 pass);tscandtest/sections/registry.test.tsrefuse it.Proof
bun test src/sections/teams18 pass acrossteams.test.tsandmock.test.ts.The full
bun testis 4227 pass, 0 fail.bun run check(lint, arch lint, compat, typecheck, build:check) green;bun run knipgreen.bun run test:e2e --sections teams12/12 passed.Kept
They pin the personal-account no-op, the grant plan with the pull/push vocabulary, the undeclared revoke and its empty re-plan, the bare 204 probe body, and the 404-only org probe tolerance.
They also pin the case-folded duplicate slug, the convergence run, and the two snapshot cases.
src/sections/teams/mock.test.tsis untouched: nothing in it was ruled for deletion.@ts-expect-errorpin outside the deleted case existed in this file, so none was touched.Technical details
git diff --numstat origin/main...HEADis 0 added, 16 deleted, in one file: the case and its preceding blank line.test/sections, which landed in test(sections): pin the read port and planned-op contracts once, drop the restatements #382 before this one.git checkout -- src.BEGIN_COMMIT_OVERRIDE
test(teams): drop the case the contract tests already pin
END_COMMIT_OVERRIDE