← Files get-fableARCHIVED FILE

skills/fable-tdd/templates/tdd-cycle.template.md

707 Bytes · Oct 2, 2026 · 00:30 UTC

↓ Download file

# TDD Execution Cycle Log

## Feature / Bug Description
[Concise description of the behavior change or bug fix being implemented]

## Phase 1: RED (Failing Test)
- **Test File**: `test/auth/token-expiry.test.ts`
- **Observed Failure Output**:
  ```text
  error: expect(received).toBe(expected)
  Expected: false
  Received: true (Expired token was accepted)
  ```

## Phase 2: GREEN (Minimal Implementation)
- **Modified File**: `src/auth/token.ts`
- **Diff Summary**: Added `isExpired(token)` timestamp comparison.
- **Observed Pass Output**: `1 pass, 0 fail (4.2ms)`

## Phase 3: REFACTOR (Cleanup)
- Extracted `getCurrentTimestampSeconds()` helper for clean mocking.
- Verified test suite remains green.

SHA-256: e704d2a29252fffa59b5631a6af4db8b731e6b32c0653fcc61acf80b0b417f8f