Guidance for running and updating tests in this repository.
Use this skill to choose the smallest validation set that still proves the change is safe.
app/engine/__tests__/app/components/**/__tests__/app/hooks/__tests__/app/storage/__tests__/electron/__tests__/e2e-tests/*.spec.tsRun:
npm testnpm run typechecknpm run lintAlso run npm run build if the change touches app boot, rendering, build-time env usage, or anything imported by Next at build time.
app/data or story flowRun:
npm testnpm run validate-storyAdd npm run typecheck if you changed TypeScript structures, imports, or file definitions.
package.json, README.md, next.config.ts, relevant app files) before editing.app/engine/__tests__/filesystem.test.ts.narrative-mechanics.test.ts, ux-commands.test.ts, system-commands.test.ts, or the closest focused spec.Terminal.test.tsx and hook tests are common follow-ups.createTestState, existing mocks, DEFAULT_GAME_STATE) over ad hoc fixtures.npm testnpm run typechecknpm run lintnpm run buildnpm run validate-storynpm run validate-enhancednpm run validate-fundamentals