agent-orchestrator/vite.config.ts
Hibryda f0850f0785 feat: @agor/stores package (3 stores) + 58 BackendAdapter tests
@agor/stores:
- theme.svelte.ts, notifications.svelte.ts, health.svelte.ts extracted
- Original files replaced with re-exports (zero consumer changes needed)
- pnpm workspace + Vite/tsconfig aliases configured

BackendAdapter tests (58 new):
- backend-adapter.test.ts: 9 tests (lifecycle, singleton, testing seam)
- tauri-adapter.test.ts: 28 tests (invoke mapping, command names, params)
- electrobun-adapter.test.ts: 21 tests (RPC names, capabilities, stubs)

Total: 523 tests passing (was 465, +58)
2026-03-22 04:45:56 +01:00

26 lines
651 B
TypeScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'node:path'
export default defineConfig({
plugins: [svelte()],
resolve: {
alias: {
'@agor/types': path.resolve(__dirname, 'packages/types/index.ts'),
'@agor/stores': path.resolve(__dirname, 'packages/stores/index.ts'),
},
},
server: {
port: 9710,
strictPort: true,
},
clearScreen: false,
test: {
include: [
'src/**/*.test.ts',
'packages/**/*.test.ts',
'sidecar/**/*.test.ts',
...(process.env.AGOR_EDITION === 'pro' ? ['tests/commercial/**/*.test.ts'] : []),
],
},
})