first implementation

This commit is contained in:
Wuesteon 2025-11-27 17:26:18 +01:00
parent 98efa6f6e8
commit 74dc6892ab
61 changed files with 30899 additions and 4934 deletions

46
vitest.config.ts Normal file
View file

@ -0,0 +1,46 @@
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
reportsDirectory: './coverage',
exclude: [
'node_modules/',
'dist/',
'build/',
'.next/',
'.svelte-kit/',
'.astro/',
'**/*.config.*',
'**/*.d.ts',
'**/types/**',
'**/__tests__/**',
'**/__mocks__/**',
'**/test/**',
],
thresholds: {
lines: 50,
functions: 50,
branches: 50,
statements: 50,
},
},
testTimeout: 10000,
hookTimeout: 10000,
teardownTimeout: 10000,
isolate: true,
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['node_modules', 'dist', 'build', '.next', '.svelte-kit', '.astro'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@manacore': path.resolve(__dirname, './packages'),
},
},
});