chore: add workspace vitest configuration for testing with jsdom and coverage

This commit is contained in:
2025-05-19 04:34:13 +07:00
parent c5f34efe05
commit fa726eecc4
8 changed files with 110 additions and 1201 deletions
+19
View File
@@ -0,0 +1,19 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
workspace: [
{
extends: true,
test: {
environment: 'jsdom',
},
},
],
coverage: {
provider: 'v8',
include: ['packages/*'],
exclude: ['**/node_modules/**', '**/dist/**'],
},
},
});