docs/plans/2026-03-22-yjs-testing-execution.md
Implement the March 22 Yjs testing plan with:
*.spec.ts coverage that stays in bun testpnpm test:slow -- packages/yjs/srcpnpm test:slow -- packages/yjs/src/react coverage.bun test.slate-yjs and yjs for invariants, not for blind file mirroring.tooling/scripts/test-fast.mjs only discovers *.spec.ts[x], so *.slow.ts is enough to keep the slow lane out of default discovery.mock.module(...), and the local bun-types docs confirm it is available in this repo.BaseYjsPlugin is the core risk surface: provider instantiation, sync wait, seed behavior, and cleanup.withPlateYjs is worth direct coverage because it has real branching and composition order.slate-yjs mostly validates operation-level Slate/Yjs correctness and should not be mirrored in this wrapper package.yjs late-sync and pending-update cases are worth adapting at the provider-sync layer, which justified the disconnected-concurrent and out-of-order slow fixtures.bun test packages/yjs/srcpnpm test:slow -- packages/yjs/srcpnpm installpnpm turbo build --filter=./packages/yjspnpm turbo typecheck --filter=./packages/yjspnpm lint:fix