TheVicky1 / TheVicky1/Pact_OS

[Test] Add Single-Item Filter Boundary Test Case to Task Engine

Open Beginner friendly
#111 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:tasks beginner friendly bug community contributions-welcome difficulty:beginner difficulty:easy good first issue hacktoberfest help wanted open-source testing up-for-grabs
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.