docs/plans/2026-04-17-slate-v2-slate-react-bun-migration.md
Move /Users/zbeyens/git/slate-v2/packages/slate-react off Jest with a Bun-first
approach. Pause if the remaining lane hits a real Bun or DOM-environment blocker.
packages/slate-react/test/bun/**packages/slate-react/test/*.spec.ts[x]chunking.vitest.tsdecorations.vitest.tsxreact-editor.vitest.tsxuse-selected.vitest.tsxjest.fn compatibilityslate-react no longer needs Jest for basic mocking semantics; Bun setup
already exposes jest.fn.react-editor.spec.tsx and use-selected.spec.tsx are clearly React/DOM
lanes.chunking.spec.ts is not a pure non-React lane; it imports withReact,
ReactEditor, and DOM-backed chunk tree behavior.decorations.spec.tsx is also DOM-backed because it reads rendered leaves
through ReactEditor.toDOMNode(...).chunking.vitest.ts: greendecorations.vitest.tsx: greenuse-selected.vitest.tsx: greenreact-editor.vitest.tsx: 1 failing testReactEditor > .focus > should be able to call .focus without getting toDOMNode errors"test"."foobar" instead of
"bar"."test" shape as Bun + Happy DOM.test/bun/**test/*.spec.{ts,tsx} lane to Vitestjsdom 20.0.3jsdom 20.0.3, the full slate-react Vitest lane went green,
including react-editor.spec.tsx.packages/slate-react/test/bun/** stays on Bunpackages/slate-react/test/*.vitest.{ts,tsx} now runs on Vitest + jsdomtest script is now test:bun && test:vitesttest script is now test:bun && test:vitestpnpm --dir /Users/zbeyens/git/slate-v2 exec bun test ./packages/slate-react/test/chunking.vitest.tspnpm --dir /Users/zbeyens/git/slate-v2 exec bun test ./packages/slate-react/test/decorations.vitest.tsxpnpm --dir /Users/zbeyens/git/slate-v2 exec bun test ./packages/slate-react/test/use-selected.vitest.tsxpnpm --dir /Users/zbeyens/git/slate-v2 exec bun test ./packages/slate-react/test/react-editor.vitest.tsxpnpm --filter slate-react testpnpm turbo build --filter=./packages/slate-reactpnpm turbo typecheck --filter=./packages/slate-reactpnpm lint:fixpnpm testPLAYWRIGHT_BASE_URL=http://localhost:3101 bun checkbun test on migrated slate-react spec filespnpm --filter slate-react testpnpm turbo build --filter=./packages/slate-reactpnpm turbo typecheck --filter=./packages/slate-reactpnpm lint:fix