Sync & Trash Tests — Control Map
Coverage for /config/sync and /config/trash admin shells.
On this page
/config/sync
| Piece | Role |
|---|---|
+page.server.ts |
Admin gate |
+page.svelte |
Sync / Backups / Debug tabs, status, Sync All |
/config/trash
| Piece | Role |
|---|---|
+page.server.ts |
Admin gate |
trash-api.ts |
list + restore via fetchApi (CSRF automatic) |
+page.svelte |
UI + showConfirm |
| Testing | seed-trash / purge-trash |
Control → test matrix
| Control | Unit | E2E |
|---|---|---|
| Sync admin gate | ✅ | — |
| Trash admin gate | ✅ | — |
| Sync API client | ✅ sync-api (via fetchApi) | shell |
| Sync tabs + status shell | — | ✅ data-ops |
| Trash empty/table | — | ✅ data-ops |
| Golden restore | seed-trash | ✅ seed → restore → gone |
Run
bun run test:unit -- tests/unit/routes/sync-trash-page-server.test.ts
bun x playwright test tests/e2e/routes/config/data-ops.spec.ts
Was this page helpful?