Writing tests Unit and integration tests use Vitest. Tests run from workspace directories, not the repo root. Test file locations Unit tests - alongside source files: Integration tests - in directory: Shape/tool tests - alongside the implementation: Which workspace to test in - packages/editor : Core primitives, geometry, managers, base editor functionality - packages/tldraw : Anything needing default shapes/tools (most integration tests) TestEditor vs Editor Use for integration tests (includes default shapes/tools): Use raw when testing editor setup or custom configurations: Common TestEdito…