Skip to content

Aryan singh submission - #86

Open
aryan2006-singh wants to merge 2 commits into
rohit-ups:mainfrom
aryan2006-singh:aryan-singh-submission
Open

Aryan singh submission#86
aryan2006-singh wants to merge 2 commits into
rohit-ups:mainfrom
aryan2006-singh:aryan-singh-submission

Conversation

@aryan2006-singh

Copy link
Copy Markdown

No description provided.

aryan2006-singh and others added 2 commits August 16, 2026 20:10
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant