Skip to content

test: add 16 unit tests for preflight_check helpers - #230

Open
TerminalGravity wants to merge 2 commits into
mainfrom
test/preflight-check-unit-tests
Open

test: add 16 unit tests for preflight_check helpers#230
TerminalGravity wants to merge 2 commits into
mainfrom
test/preflight-check-unit-tests

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator

Exports and tests the core helper functions in preflight-check.ts:

  • extractFilePaths — path extraction from prompt text (6 tests)
  • buildScopeSection — SMALL/MEDIUM/LARGE classification (4 tests)
  • buildSequenceSection — multi-step splitting + risk tagging (6 tests)

Brings total test count from 47 → 63. All passing.

Export extractFilePaths, buildScopeSection, buildSequenceSection from
preflight-check.ts and add comprehensive tests covering:
- File path extraction (dedup, backslashes, edge cases)
- Scope classification (SMALL/MEDIUM/LARGE)
- Sequence splitting (multi-step detection, risk assignment)
- Checkpoint generation

Brings test count from 47 → 63.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant