chore: limit current support and validation to browser clients

This commit is contained in:
maoyingjie
2026-10-26 09:53:24 +08:00
parent dbcce1871e
commit 52a0bef851
20 changed files with 87 additions and 56 deletions
+9 -1
View File
@@ -1,4 +1,4 @@
import { defineConfig } from "vitest/config";
import { configDefaults, defineConfig } from "vitest/config";
import { docsDataPlugin } from "./apps/docs/.vitepress/docs-data";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath, URL } from "node:url";
@@ -26,6 +26,14 @@ export default defineConfig({
test: {
environment: "jsdom",
include: ["tests/**/*.test.ts"],
// Client-only scope: legacy SSR/hydration files and mixed-file cases
// remain as historical material, outside default development/acceptance.
exclude: [
...configDefaults.exclude,
"**/*ssr.test.ts",
"**/*hydration.test.ts",
],
testNamePattern: /^(?!.*(?:\bssr\b|hydrat)).*$/i,
setupFiles: ["tests/setup/cssom.ts", "tests/setup/scroll.ts"],
},
});