Skip to content

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.

add xspace-agent/xspace-agent/packages/cli/vitest.config.ts

overstepping54fb7bc8610c
diff --git a/xspace-agent/xspace-agent/packages/cli/vitest.config.ts b/xspace-agent/xspace-agent/packages/cli/vitest.config.ts
new file mode 100644
index 000000000..6d57d91e7
--- /dev/null
+++ b/xspace-agent/xspace-agent/packages/cli/vitest.config.ts
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: Apache-2.0
+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§32]
+
+import { defineConfig } from 'vitest/config'
+import * as path from 'path'
+
+export default defineConfig({
+ resolve: {
+ alias: {
+ // @xspace/server has no dist/ in dev; alias to a stub so vi.mock() can intercept it
+ '@xspace/server': path.resolve(__dirname, 'tests/__mocks__/@xspace/server.ts'),
+ // Same for xspace-agent — its dist may not exist in the CLI test context
+ 'xspace-agent': path.resolve(__dirname, 'tests/__mocks__/xspace-agent.ts'),
+ },
+ },
+ test: {
+ globals: true,
+ environment: 'node',
+ include: ['tests/**/*.test.ts'],
+ coverage: {
+ provider: 'v8',
+ reporter: ['text', 'lcov'],
+ include: ['src/**/*.ts'],
+ exclude: ['src/index.ts', '**/*.test.ts'],
+ },
+ testTimeout: 10000,
+ },
+})
+
+