mirror of
https://github.com/vercel-labs/json-render.git
synced 2026-09-14 13:41:32 +08:00
db3a8b41e9
* feat: vue support * feat: add a vite example * use css instead of inline styles * feat: add tests * chore: use portless * fix: update reactivity * chore: update * chore: build * feat: add hooks, add missing zod peer deps
26 lines
801 B
TypeScript
26 lines
801 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
// Deduplicate React and Vue so tests don't get two copies
|
|
// (pnpm strict resolution can cause packages to resolve different copies)
|
|
alias: {
|
|
react: path.resolve(__dirname, "node_modules/react"),
|
|
"react-dom": path.resolve(__dirname, "node_modules/react-dom"),
|
|
vue: path.resolve(__dirname, "packages/vue/node_modules/vue"),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
include: ["packages/**/*.test.ts", "packages/**/*.test.tsx"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json", "html"],
|
|
include: ["packages/*/src/**/*.{ts,tsx}"],
|
|
exclude: ["**/*.test.{ts,tsx}", "**/index.ts"],
|
|
},
|
|
},
|
|
});
|