Context
In PR #283, classify_changes.cjs was updated to export classifyChanges and matches via module.exports. These functions are now testable but have no unit tests.
Scope
- Test
matches() glob function: ** recursive, * single-level, literal paths, dots
- Test
classifyChanges(): all three tiers, require_full_classification error path, empty file list
- Test edge cases: overlapping patterns, missing policy fields
Acceptance Criteria
Context
In PR #283,
classify_changes.cjswas updated to exportclassifyChangesandmatchesviamodule.exports. These functions are now testable but have no unit tests.Scope
matches()glob function:**recursive,*single-level, literal paths, dotsclassifyChanges(): all three tiers,require_full_classificationerror path, empty file listAcceptance Criteria
scripts/__tests__/classify_changes.test.cjs)