mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 15:29:41 +02:00
Add 91 tests covering the SkillTree application: Web (Vitest - 53 tests): - Level calculation and XP progress functions - Branch validation and factory functions - createDefaultSkill and createActivity helpers Backend (Jest - 38 tests): - SkillService CRUD operations - XP system with level-up detection - User stats aggregation - Custom Drizzle ORM mock with thenable query builder
18 lines
419 B
TypeScript
18 lines
419 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte({ hot: !process.env.VITEST })],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
$lib: resolve('./src/lib'),
|
|
},
|
|
},
|
|
});
|