test: add initial testing and linting (#18)

This commit is contained in:
Morten Olsen
2025-05-19 21:04:32 +02:00
committed by GitHub
parent 9d04cf0414
commit c01dce4998
33 changed files with 4159 additions and 299 deletions

15
vitest.config.ts Normal file
View File

@@ -0,0 +1,15 @@
import { defineConfig } from 'vitest/config';
const config = defineConfig({
test: {
coverage: {
reporter: ['text', 'json', 'json-summary', 'html'],
all: true,
reportOnFailure: true,
include: ['src/**/*.ts'],
exclude: ['src/cli/**/*.ts'],
},
},
});
export default config;