test: add boundary tests for focus session duration validator
Open
Beginner friendly
Nobody has claimed this yet.
accessibility
area:testing
beginner friendly
community
contributions-welcome
difficulty:beginner
difficulty:easy
enhancement
good first issue
help wanted
time:30-60m
type:test
up-for-grabs
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- Avg merge
- 39m
- Merged PRs (30d)
- 39
Description
🎯 What needs to be done
Add unit tests asserting that focus session duration inputs < 1 minute or > 240 minutes are rejected with explicit Zod validation errors.
Why this matters
Hardens input validation against invalid session parameters before server action execution.
📍 Where to work
tests/focus-engine.test.ts
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
Start in tests/focus-engine.test.ts and review the existing focus session duration validation tests. Add cases showing inputs below 1 minute and above 240 minutes are rejected with explicit Zod validation errors, then run the relevant test file to confirm the boundary behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 90/100