Add test coverage support

This commit is contained in:
Bill Thornton
2024-06-25 10:34:49 -04:00
parent f30343cfca
commit 4c24d40d76
4 changed files with 301 additions and 7 deletions

View File

@@ -1,8 +1,13 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from 'vite';
export default defineConfig({
test: {
environment: 'jsdom'
coverage: {
include: [ 'src' ]
},
environment: 'jsdom',
restoreMocks: true
}
});