jest to vitest

This commit is contained in:
marocchino 2025-04-11 07:17:55 +09:00
parent e39079643f
commit faaf52818d
No known key found for this signature in database
GPG key ID: F54107506CCF18D0
10 changed files with 2630 additions and 4071 deletions

21
vitest.config.ts Normal file
View file

@ -0,0 +1,21 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
clearMocks: true,
coverage: {
provider: 'v8',
reporter: ['json', 'lcov', 'text', 'clover'],
exclude: ['/node_modules/'],
},
environment: 'node',
include: ['**/__tests__/**/*.test.ts'],
globals: true,
testTimeout: 10000,
poolOptions: {
threads: {
maxThreads: 10,
},
},
},
});