原文
Move the test suite out of the open source tldraw/tldraw repo and into the closed source repo.
Context
The tldraw monorepo currently contains ~327 test files across unit, integration, and e2e tests:
- packages/tldraw: ~148 unit/integration tests (shapes, tools, commands, UI)
- packages/editor: ~41 unit/integration tests (geometry, managers, tools)
- packages/store: ~27 unit tests (records, queries, migrations)
- packages/utils: ~30 unit tests (array, cache, media, hashing)
- packages/sync-core: ~20 unit/integration tests (room, storage, protocol)
- packages/state: ~12 unit tests (atoms, computed, transactions)
- packages/tlschema: ~9 unit tests (schema, migrations)
- packages/validate: ~2 unit tests
- packages/sync: ~2 unit tests
- apps/examples/e2e: ~24 Playwright e2e tests
- apps/dotcom/client/e2e: ~12 Playwright e2e tests
Scope
- Move all vitest unit/integration tests
- Move all Playwright e2e tests
- Move test configuration (vitest configs, playwright configs, test setup files)
- Move test utilities and helpers (e.g.
TestEditor) - Ensure CI in the closed source repo runs the full test suite against the SDK packages
- Remove test files from the open source repo