switch from jest to vitest

This commit is contained in:
CrazyMax
2026-03-02 22:08:14 +01:00
parent 7054f155b5
commit 431a9f4c97
11 changed files with 988 additions and 3253 deletions

16
vitest.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import {defineConfig} from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
setupFiles: ['./vitest.setup.ts'],
include: ['tests/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'clover', 'lcov'],
reportsDirectory: 'coverage',
include: ['src/**/*.ts'],
exclude: ['src/main.ts']
}
}
});