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.
Problem
Test files co-located in the
routes/directory can be picked up by the route scanner. While.test.tsxfiles are now filtered (fixed in #95), the pattern relies on the.tsxextension check as a secondary guard for.test.tsfiles.Current state
scanRoutesandgenerateRouteMapnow filter.test.*files.tsxfiles are processed, so.test.tsfiles are excluded by extension checkSuggestion
Low priority — current behavior is correct. The test pattern filter acts as defense-in-depth.