Loading
Convert labelathon DetailsSection to TypeScript
Part of &33. Closes #859 (closed).
Scope
contributors/app/javascript/pages/labelathon-page/DetailsSection.vuecontributors/app/javascript/pages/labelathon-page/DetailsSection.spec.ts(renamed from.js)contributors/app/javascript/pages/labelathon-page/__snapshots__/DetailsSection.spec.ts.snap(renamed from.js.snap)
What was done
- Added
lang="ts"to<script setup>inDetailsSection.vue. - Renamed
DetailsSection.spec.jsand its snapshotDetailsSection.spec.js.snapto.tsand.ts.snapusinggit mv. - Typed
wrapperasVueWrapperinDetailsSection.spec.ts. - Verified snapshot content remains completely unchanged and valid (shows the fully-loaded component with
DetailsSection.mdcontent). - Verified all typechecks, lint, and full vitest suite pass cleanly.
Why behaviour did not change
- No runtime logic or markup was altered.
- Snapshot output is 100% identical.
Verification
npm run typecheck && npm run lint && TZ=UTC npm run test -- --runAll checks and 143 test files (1,745 tests) passed cleanly.