kammer/vitest.config.ts
Christopher Mühl 1ef4661d9a feat: UI components — ItemCard, ItemForm, LocationTree, LocationPicker
Includes ConfidenceBadge and CustodyBadge helper components.
Dark slate theme with confidence/custody color coding.
ItemCard test suite (6 tests). Fixed vitest browser resolve conditions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 15:36:56 +01:00

20 lines
461 B
TypeScript

import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
plugins: [svelte({ hot: false })],
resolve: {
alias: {
$lib: path.resolve('./src/lib'),
$app: path.resolve('./src/test/mocks'),
},
conditions: ['browser'],
},
test: {
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
include: ['src/**/*.test.ts'],
globals: true,
},
});