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>
20 lines
461 B
TypeScript
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,
|
|
},
|
|
});
|