
> memeography@0.2.1 test
> tsx scripts/test.ts tests/integration/story-privacy.test.ts tests/integration/repair003.test.ts tests/integration/contract.test.ts


 RUN  v5.0.4 C:/Users/trmit/.codex/.chatgpt-projects/g-p-6acc478730d88191a7563fa87dc7eb75/ready/Memeography

 ✓ tests/integration/story-privacy.test.ts (18 tests) 13083ms
   ✓ P1-05 / P1-06 · story, export, deletion, privacy (real DB, local store) (18)
     ✓ chapters (7)
       ✓ publish freezes an exact snapshot; later edits make a NEW draft and never touch the published revision 333ms
     ✓ portable export (offline JSON + HTML ZIP) (5)
       ✓ originals need explicit confirmation, and a share copy can never carry them 608ms
       ✓ exports expire and are purged by maintenance; a grant for an expired export is refused 1435ms
     ✓ deletion (P1-06): reads stop immediately, dependents are invalidated, the purge is staged and verified (5)
       ✓ immediately after the request (before any worker runs) every read path is closed 968ms
       ✓ the purge job removes bytes, derivatives, metadata and machine-derived text, and only then reports complete 1620ms
       ✓ a failed purge stage is NEVER reported complete: it stays partial/failed and is retried 475ms
       ✓ restore drill: a backup that resurrects deleted data cannot reopen access until the ledger is replayed 392ms
     ✓ workspace deletion (1)
       ✓ needs a recent authentication and an explicit confirmation; then everything is blocked and purged, the other owner is untouched 1570ms
 ✓ tests/integration/repair003.test.ts (8 tests) 3670ms
   ✓ never sends precise GPS in text or pictures 442ms
   ✓ deleting a secondary evidence source invalidates and scrubs a shared machine claim 665ms
   ✓ local passwords protect setup, sign-in, and reauthentication 415ms
 ✓ tests/integration/contract.test.ts (12 tests) 3291ms
   ✓ contracts/openapi.json 1.2.0 (12)
     ✓ imports and uploads: requests and responses conform 477ms
     ✓ local password setup and sign-in conform, including rejected passwords 335ms

 Test Files  3 passed (3)
      Tests  38 passed (38)
   Start at  16:41:09
   Duration  29.72s (tests 90%, import 9%, transform 1%)

    Isolate  3 workers spawned · ~1.12s startup each (spawn + environment, per file)
             at least ~2.24s faster with isolate: false — reuses workers across files instead of one per file

JSON report written to C:/Users/trmit/.codex/.chatgpt-projects/g-p-6acc478730d88191a7563fa87dc7eb75/ready/Memeography/test-results/vitest/6a8b597d-ed81-4745-bbdb-2957fecce302.json
