Aryan singh submission - #86
Open
aryan2006-singh wants to merge 2 commits into
Open
Conversation
Day 1: - Unit tests for every taskService function (tests/taskService.test.js) - Unit tests for the validators (tests/validators.test.js) - Integration tests for every route via Supertest (tests/tasks.routes.test.js) - 98.7%% statement / 98.82%% branch coverage (see SUBMISSION.md for the full summary); the only uncovered lines are the unreachable-under-test app.listen() bootstrap in app.js Day 2: - Bug report for 4 bugs found via the above tests, each backed by a test and a suggested fix (BUGS.md) - Fixed BUG-02: completeTask() was hardcoding priority: 'medium', silently discarding the task's actual priority on completion - Implemented PATCH /tasks/:id/assign with validation (non-empty string, trimmed before storage), 404 for unknown tasks, and support for reassignment; design rationale in SUBMISSION.md - BUG-01, BUG-03, BUG-04 documented but intentionally left unfixed, per the assignment's 'fix one bug' scope; their tests use Jest's test.failing() so they act as regression tripwires instead of silent TODOs Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Runs the Jest suite on Node 18.x and 20.x via GitHub Actions on every push and PR, and fails the build if coverage drops below the 80% floor set by the assignment. Adds the json-summary reporter to jest.config.js so the coverage-summary.json the check reads actually gets produced. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
No description provided.