Skip to content

test(mobile): scan nested route folders in a11y-scan (#30) - #159

Merged
juancguerrerodev merged 2 commits into
DojoCodingLabs:mainfrom
Mugunth007:fix/30-a11y-scan-nested
Nov 28, 2026
Merged

juancguerrerodev merged 2 commits into
DojoCodingLabs:mainfrom
Mugunth007:fix/30-a11y-scan-nested

Conversation

@Mugunth007

Copy link
Copy Markdown
Contributor

Closes #30

  • Use readdirSync(..., { recursive: true }) in apps/mobile/src/a11y-scan.test.ts so nested route/component folders (such as app/oauth/mcp.tsx) are included in the scan.
  • Discover top-level .tsx files under src/ dynamically instead of hardcoding app-lock.tsx.
  • Convert import.meta.url with fileURLToPath so the test runs on Windows as well as POSIX.
  • Add a test asserting nested app/oauth/mcp.tsx and app-lock.tsx are included.

Verified with node --test --experimental-strip-types src/a11y-scan.test.ts (9/9 passing).

@juancguerrerodev
juancguerrerodev merged commit c4f0f2f into DojoCodingLabs:main Nov 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the accessibility scan read nested route folders

3 participants