Decompose src/server/handlers/plot-plan-runs.test.ts (640 lines, furthe…#423
Merged
Conversation
…9db) Extract the file-local helper/fixture group into a new sibling src/server/handlers/plot-plan-runs.test-helpers.ts (one copy of every stub/fixture, jscpd-scanned). Split the single describe block's 9 tests into plot-plan-runs.test.ts (happy-path + filter) and a new plot-plan-runs.validation.test.ts (7 validation/error tests), each importing from the helpers module. Test bodies, assertions, stubs, and fixtures are unchanged; 9 pass / 0 fail. Mirrors checks.test-helpers.ts (warren-7a15) and projects.test-helpers.ts (warren-a715).
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.
Summary
test: decompose plot-plan-runs.test.ts below 500-line limit (warren-59db)
Run
run_gwekz26ek6vmSeeds
wc -l src/server/handlers/plot-plan-runs.test.ts src/server/handlers/plot-plan-runs.validation.test.ts src/server/handlers/plot-plan-runs.test-helpers.tsshows < 500 ANDbun test src/server/handlers/plot-plan-runs.test.ts src/server/handlers/plot-plan-runs.validation.test.tsreports 9 pass / 0 fail (same total as before) ANDbun run typecheckis clean ANDbun run check:dupsexits 0.Commits (2)
Files changed
Prompt
Show prompt
🤖 Opened by warren run
run_gwekz26ek6vm