1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

feat: add separate vitest configuration files for platform and stdlib environments

This commit is contained in:
2026-02-14 21:44:54 +07:00
parent 6565fa3de8
commit 5f9e0dc72d
3 changed files with 18 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
},
});

View File

@@ -0,0 +1,7 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
},
});

View File

@@ -3,16 +3,10 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: [
{
extends: true,
test: {
typecheck: {
enabled: false,
},
},
},
'core/stdlib/vitest.config.ts',
'core/platform/vitest.config.ts',
'web/vue/vitest.config.ts',
],
environment: 'jsdom',
coverage: {
provider: 'v8',
include: ['core/*', 'web/*'],