mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
Every backup test exports and restores with the same code, so a change that moves both ends at once passes all of them and still breaks a file a self-hoster downloaded last month. Commit the disaster-recovery file the 1.46.1 exporter writes for the shared backup seed, with a manifest of its counts and SHA-256, and restore each committed file through the admin upload and restore routes into an empty account, comparing the re-exported counts section by section. The folder takes one file per release (GOLDEN_BACKUP_WRITE=1 writes the current one; the README says when). The seed's own illness-symptom catalogue key is swapped for a shipped one so every link resolves on a fresh instance. Ciphertext is sealed under the suite's fixed key. A measurement tombstone that ages past retention may only lower its count.
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
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__
|
|
|
|
# A release's backup file exactly as its exporter wrote it; the golden-backup
|
|
# test checks the bytes against the manifest's SHA-256, so it is never
|
|
# reformatted. The manifests are written by the same test.
|
|
tests/fixtures/golden-backups/*.json
|
|
|
|
# inlang writes its working files (cache, metadata, README) next to the
|
|
# project settings when its CLI or SDK runs; only settings.json is tracked.
|
|
project.inlang/*
|
|
!project.inlang/settings.json
|