add unit tests

this adds the groundwork to start unit testing some modules
This commit is contained in:
Bernd Storath
2026-02-11 15:23:04 +01:00
parent 7a219b73d4
commit 71aaec93ef
6 changed files with 641 additions and 29 deletions
+18
View File
@@ -0,0 +1,18 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
include: ['test/unit/*.{test,spec}.ts'],
environment: 'node',
},
},
],
coverage: {
enabled: true,
},
},
});