Skip to content

[Test] Add Step Boundary Range Assertion to Weekly Review Test Suite #70

Description

@TheVicky1
  • Labels: good first issue, testing, difficulty:beginner, area:core
  • Target File: tests/weekly-review.test.ts
  • Estimated Time: 15–20 minutes
  • Difficulty: Level 3 (Beginner)

Why This Matters

The Weekly Review ritual progresses through 5 discrete steps (1: Retrospective, 2: Tasks Audit, 3: Habit Scorecard, 4: Goal Alignment, 5: Strategic Commitments). Boundary tests ensure invalid step indices (< 1 or > 5) are rejected cleanly.

Current Behavior

tests/weekly-review.test.ts validates standard step advancement, but does not explicitly assert that step indices 0 or 6 throw validation errors.

Requested Change

Add a dedicated test block in tests/weekly-review.test.ts asserting that step transitions clamp to valid range [1, 5].

Acceptance Criteria

  • Boundary check test case added to tests/weekly-review.test.ts.
  • Test executes and passes cleanly.

Verification

npm run test:file -- tests/weekly-review.test.ts

Contributor Notes

Self-contained unit test addition.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityAccessibility / a11y improvements (ARIA attributes, keyboard navigation, contrast)area:coreCore domain logic, shared arithmetic helpers, security, and utility servicesbeginner friendlyAccessible task suitable for developers new to open sourcebugConfirmed defect, malfunctioning behavior, or validation errorcommunityCommunity-driven enhancement, UX feedback, or resource sharingcontributions-welcomeCommunity contributions are explicitly encouraged for this issuedifficulty:beginnerBeginner-friendly task with single-file scope and clear acceptance criteriadifficulty:easyStraightforward task requiring basic familiarity with React/TypeScriptenhancementSmall improvement, refinement, or feature expansiongood first issueCurated, self-contained task suitable for first-time contributorshacktoberfestEligible high-quality task for open-source community eventshelp wantedMaintainer is actively welcoming community contributions on this issuetestingUnit tests, test matrix expansion, validation fixtures, and regression coveragetime:<15mQuick fix, typo correction, or minor tweak (< 15 minutes)up-for-grabsUnassigned issue that is available for any contributor

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions