Testing workflow:
- •Run
npm testafter code changes that affect engine or UI behavior. - •Keep tests in
app/engine/__tests__andapp/components/__tests__. - •Prefer direct imports over mocking when possible to avoid module resolution issues.
- •Use Vitest utilities (
describe,it,expect) and React Testing Library patterns already in the repo.
If adding tests for filesystem gating:
- •Update
filesystem.test.tswith listDirectory/getNode expectations. - •Use
createTestStateto apply overrides for access levels and flags.