Skip to content

ASE-275: tighten frontend mock-api budget debt#761

Open
BetterAndBetterII wants to merge 1 commit into
mainfrom
refactor/ase-275-frontend-debt
Open

ASE-275: tighten frontend mock-api budget debt#761
BetterAndBetterII wants to merge 1 commit into
mainfrom
refactor/ase-275-frontend-debt

Conversation

@BetterAndBetterII
Copy link
Copy Markdown
Collaborator

What changed

  • split the oversized web/src/lib/testing/e2e/mock-api support modules into focused seed, route, ticket-record, project-update, and ticket-runtime helpers
  • added focused Vitest coverage for the extracted mock-API helpers
  • tightened the frontend testing-support file budget from 650 lines to 500 lines in web/file-budgets.config.mjs and web/README.md

Why

ASE-275 targets temporary frontend debt that was introduced to get past file-length budget checks. The E2E mock-API support layer had grown large enough to require an unusually broad testing-support budget, so this PR pays that debt down by splitting the hotspots into maintainable modules and then narrowing the allowed budget again.

Impact

  • frontend E2E mock-API support is easier to navigate and change in smaller pieces
  • the temporary wide budget allowance is reduced without reintroducing file-length bypasses
  • new focused tests cover the extracted helper boundaries

Validation

  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm install --frozen-lockfile
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run format:check
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run lint
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run lint:structure
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm run lint:deps
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm exec vitest run src/lib/testing/e2e/mock-api/entities.test.ts src/lib/testing/e2e/mock-api/initial-state.test.ts src/lib/testing/e2e/mock-api/project-update-records.test.ts src/lib/testing/e2e/mock-api/ticket-runtime-data.test.ts
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm exec svelte-check --tsconfig ./tsconfig.json --output machine --threshold error
  • cd web && PATH=$HOME/.nvm/versions/node/v22.22.1/bin:$PATH pnpm exec vite build --logLevel warn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant