feat: add Vitest configuration and tests for lesson modules and rendering

This commit is contained in:
Michael Czechowski
2025-05-13 21:07:04 +02:00
parent ab4279f9ca
commit 4141501708
9 changed files with 2325 additions and 51 deletions

20
vitest.config.js Normal file
View File

@@ -0,0 +1,20 @@
// vitest.config.js
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./tests/setup.js'],
include: ['tests/**/*.{test,spec}.js'],
coverage: {
reporter: ['text', 'json', 'html'],
exclude: ['node_modules/', 'tests/setup.js']
},
server: {
deps: {
inline: true
}
}
}
});