Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/exams/question-form.test.tsxClear filter2026-07-25
test: 🧪 component tests, so UI behaviour can be proven at allAhmet Kaan Gümüş · 41d1040
test: 🧪 component tests, so UI behaviour can be proven at all - the repo had no DOM environment, so every UI change was code-read verified only; that gap let a wrong option image, a mis-tagged subject and a lying save badge all ship - add jsdom and @solidjs/testing-library as devDependencies (nothing ships; entry bundle is 8 bytes smaller) - split vitest into two projects: node runs the existing *.test.ts untouched, dom runs *.test.tsx with the Solid transform. One bun run test still runs everything; the contract suite stays out - first tests cover bugs that actually shipped: a stored subject that is no longer pickable shows as disabled and blocks submit, no choice is pre-marked correct, submit is blocked until one is, an option keeps its own image after the row above it is removed, and the bank picker refuses to insert until a subject is explicitly picked - add data-choice-id to the choice row so a test can assert which option an image belongs to without coupling to styling