[Test] Add Single-Item Filter Boundary Test Case to Task Engine
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- Avg merge
- 39m
- Merged PRs (30d)
- 39
Description
Target File
tests/tasks-validation.test.ts
Estimated Time
10-15 minutes
Difficulty
Level 2 (Beginner)
Why This Matters
Task collection filters must maintain array integrity when filtering collections containing exactly one task element.
Current Behavior
tests/tasks-validation.test.ts covers multi-task priority sorting and empty array handling, but lacks a dedicated single-element array boundary test.
Requested Change
Add a unit test case in tests/tasks-validation.test.ts.
Acceptance Criteria
- New unit test added and passes cleanly via npm test.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open tests/tasks-validation.test.ts and review the existing multi-task priority sorting and empty-array tests first. Add a single-element array boundary test for task collection filtering, then run npm test. Done means the new test is present and the full test command passes cleanly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 92/100