Skip to content

test(wa-sqlite): cover SharedWorker OPFS lifecycle - #221

Merged
Antonov548 merged 2 commits into
mainfrom
test/wa-sqlite-shared-worker-long-path
Jul 14, 2026
Merged

test(wa-sqlite): cover SharedWorker OPFS lifecycle#221
Antonov548 merged 2 commits into
mainfrom
test/wa-sqlite-shared-worker-long-path

Conversation

@marcus-pousette

@marcus-pousette marcus-pousette commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add SharedWorker to the browser OPFS lifecycle matrix
  • exercise long filenames across write, reload, persisted read, and drop
  • cover both explicit close and abrupt reload
  • start each lifecycle from its unique document ID and filename without a pre-clean client

Each case uses a fresh randomized OPFS path, so the first client created is the runtime under test. The final drop still verifies cleanup and removes the test store.

Verification

  • pnpm -C packages/treecrdt-wa-sqlite/e2e exec playwright test tests/lifecycle.spec.ts --project=chromium-dev (6 passed)
  • focused Prettier check
  • git diff --check

@Antonov548
Antonov548 merged commit 447c7dd into main Jul 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants