Skip to content

Route scanner picks up .test.ts files inside routes directory #99

@qantrepreneur

Description

@qantrepreneur

This was generated by AI during triage.

Problem

Test files co-located in the routes/ directory can be picked up by the route scanner. While .test.tsx files are now filtered (fixed in #95), the pattern relies on the .tsx extension check as a secondary guard for .test.ts files.

Current state

  • scanRoutes and generateRouteMap now filter .test.* files
  • Only .tsx files are processed, so .test.ts files are excluded by extension check
  • The filtering is consistent but relies on two independent checks

Suggestion

Low priority — current behavior is correct. The test pattern filter acts as defense-in-depth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions