test: root vitest projects across packages

This commit is contained in:
admin committed 2026-06-16 19:36:17 +05:00
1 parent 021dfcb66b
commit d51180348c
1 file changed
+28
+28
View File
@@ -0,0 +1,28 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit',
include: ['packages/*/test/unit/**/*.test.ts']
}
},
{
test: {
name: 'integration',
include: ['packages/*/test/integration/**/*.test.ts'],
testTimeout: 120_000,
hookTimeout: 240_000
}
}
],
coverage: {
provider: 'v8',
include: ['packages/*/src/**'],
exclude: ['packages/*/src/index.ts'],
thresholds: { lines: 90, functions: 90 }
}
}
})