Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
add xspace-agent/xspace-agent/.github/instructions/testing.instructions.md
overstepping19f95d80e46c
diff --git a/xspace-agent/xspace-agent/.github/instructions/testing.instructions.md b/xspace-agent/xspace-agent/.github/instructions/testing.instructions.mdnew file mode 100644index 000000000..18fc2cc0f--- /dev/null+++ b/xspace-agent/xspace-agent/.github/instructions/testing.instructions.md@@ -0,0 +1,36 @@+---+description: "Use when writing or running tests — Vitest configuration, test patterns, mocking, coverage targets."+applyTo: "**/*.test.ts,**/*.spec.ts,**/tests/**,**/__tests__/**"+---+# Testing Conventions++## Framework++- **Vitest** with `@vitest/coverage-v8`+- Tests in `packages/core/tests/` and `packages/core/src/__tests__/`+- E2E tests in `packages/core/src/__tests__/e2e/` (require API keys, run on CI `main` only)++## Commands++```bash+pnpm test # Turbo: all tests+cd packages/core && npx vitest run # Core tests+cd packages/core && npx vitest run --coverage # With coverage+cd packages/core && npx vitest run src/__tests__/e2e/ # E2E only+```++## Patterns++- Use mock providers — never call real APIs in unit tests+- Test timeout: 10 seconds+- Coverage targets: ~80% statements/functions/lines, ~70% branches+- CI matrix: Node 18, 20, 22+- Use Socket.IO test helpers and test app factories for server tests++## Rules++- New features should include tests+- Mock external dependencies (LLM/STT/TTS providers, Puppeteer)+- E2E tests must be gated behind environment variable checks++