defenseunicorns / defenseunicorns/pepr-docs

Remove Obsolete File Metadata Tests for Numeric Prefixes

Open
#190 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
1
Avg merge
23h 7m
Merged PRs (30d)
14

Description

## Description

The codebase contains test cases for numeric prefix handling in file metadata generation that are no longer needed. These tests are marked with "Partially needed" comments (or other keywords, @AmberFryar?), indicating they were kept for legacy compatibility but be removed once the numeric prefix feature has been deprecated.

**Background:**
The file metadata system previously supported numeric prefixes (e.g., `010_filename.md`, `020_filename.md`) for ordering documentation files. This feature was later removed, but some test cases were retained for backward compatibility or transition purposes.

**Current state:**
- These tests validate behavior for a feature (numeric prefixes) that no longer exists
- Keeping these tests adds maintenance overhead and confusion

**Impact:**
- **Test suite bloat** - Unnecessary tests make the suite harder to understand and maintain
- **Misleading coverage** - Tests for removed features don't provide value

## Related Files

- https://github.com/defenseunicorns/pepr-docs/blob/main/scripts/tests/file-metadata.test.mjs

## Definition of Done

Remove old functionality and transformation from project once older versions of the docs have aged-off.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.