test(signup): fail when the terms version drifts from the pages #379
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web!379
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "test/terms-version"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Closes #323
What
TERMS_VERSIONmoves fromsrc/pages/api/signup.tstosrc/lib/terms-version.ts. Value unchanged (2026-10-11).src/lib/terms-version.test.tsreads the "Last updated" / "Senast uppdaterad" line ofsrc/content/{sv,en}/{terms,privacy}.md.TERMS_VERSION.The test fails in both directions. Changing a content date without the constant fails it. Changing the constant without the content fails it.
No version bump here.
Sign-up rows with an older version
The constant already matches the pages, so no new rows are affected. Older rows may hold a version that was replaced before it was fixed. To list them:
Any value other than
2026-10-11is a row stored under an older text. The operator decides whether to annotate them. No row is changed by this PR.Checks
pnpm test,pnpm check,pnpm lint,pnpm buildpass. Editing theen/terms.mddate makes both new tests fail.96dc9c1aa472f1e3d49f