Commit b4b9378
Add comprehensive backup/import unit tests and extract shared test helpers
Extract shared test utilities (createTestDatabase, seedUserData, loadSnapshot,
etc.) from d1-api.test.ts into tests/test-helpers.ts. Add 18 new tests in
tests/backup.test.ts covering YAML round-trip fidelity, validation/error
handling, database round-trip, and case-insensitive matching. Also fix missing
is_skipped column in the test schema.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 003f960 commit b4b9378
4 files changed
Lines changed: 1199 additions & 569 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments