Add coverage report and basic vitest settings

Set tests folder and coverage settings, update run commands for tests
This commit is contained in:
2025-03-10 17:29:07 +09:00
parent df94f864cf
commit f9d771f079
6 changed files with 765 additions and 1 deletions

19
vitest.config.js Normal file
View File

@@ -0,0 +1,19 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: [
'tests/**/*.{test,spec}.?(c|m)[jt]s?(x)'
],
// exclude: [],
coverage: {
include: [
'src/',
],
exclude: [
'src/utils.mjs',
]
}
},
});