mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
Seed one account as far as the schema allows (a row of every two-ended model, every column of those rows and of the account row, the instance settings, a sharing grant), export it both ways and restore each file into a fresh account, over the live account, and from a version-1 file in the old shapes. The files, counts, parsed payload, preview, restore outcome, reported phases, audit rows, wide-event fields and every row the account holds afterwards are compared with golden copies after ids, ciphertext and run-time timestamps are normalised. Refusals, skip reports and the schema's issue list for malformed files are pinned the same way. The seed moves out of the round-trip test into a shared fixture module so both files fill the same account.
32 lines
897 B
Plaintext
32 lines
897 B
Plaintext
node_modules
|
|
.next
|
|
out
|
|
build
|
|
coverage
|
|
|
|
# Prisma-generated client.
|
|
src/generated
|
|
|
|
# Lockfile — owned by pnpm.
|
|
pnpm-lock.yaml
|
|
|
|
# Generator-owned API contract. The openapi:check job enforces its exact
|
|
# bytes against the Zod registry, so prettier must never rewrite it.
|
|
docs/api/openapi.yaml
|
|
|
|
# Build-generated service worker (the PWA build emits it).
|
|
public/sw.js
|
|
|
|
# Ratchet baselines, written by the guards themselves (RATCHET_WRITE=1). The
|
|
# writer's JSON layout is the canonical one, so a write-back never fails the
|
|
# format check.
|
|
src/__tests__/baselines
|
|
|
|
# Benchmark results, written by scripts/bench/run.ts and committed as they
|
|
# come out, so a re-run diffs cleanly against the last one.
|
|
scripts/bench/results
|
|
|
|
# Golden copies of the backup file and the restored account, written by the
|
|
# parity test itself (BACKUP_PARITY_WRITE=1), so a rewrite diffs cleanly.
|
|
tests/integration/__golden__
|