Skip to content

Cover ComplianceRegistry.all() and stop excluding index.ts from coverage #45

Description

@alphacrack

ComplianceRegistry.all() in src/index.ts has zero test coverage — and the gap is invisible because the jest config excludes index.ts from coverage collection.

What to do

  • Add a test that ComplianceRegistry.all() returns the S3 compliance document (and stays in sync as future resources register — e.g. assert every entry has resource, version, and a non-empty controls array).
  • Remove index.ts from the jest coveragePathIgnorePatterns/collectCoverageFrom exclusion so real logic there can't hide from coverage again. If the exclusion exists only for the barrel re-exports, consider moving ComplianceRegistry into its own module instead.

Acceptance criteria

  • ComplianceRegistry.all() is covered, and coverage reporting includes the file that defines it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelates to core (security levels, compliance)good first issueGood for newcomerstestsTest coverage and test infrastructure

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions