Files
heroui-vue/vitest.config.ts

32 lines
926 B
TypeScript

import { defineConfig } from "vitest/config";
import { docsDataPlugin } from "./apps/docs/.vitepress/docs-data";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath, URL } from "node:url";
export default defineConfig({
plugins: [
vue(),
docsDataPlugin(fileURLToPath(new URL("./apps/docs", import.meta.url))),
],
resolve: {
alias: {
vitepress: fileURLToPath(
new URL(
"./apps/docs/node_modules/vitepress/dist/client/index.js",
import.meta.url,
),
),
"@heroui-vue/components": fileURLToPath(
new URL("./packages/vue/src/index.ts", import.meta.url),
),
"@heroui-vue/styles": fileURLToPath(
new URL("./packages/styles/src/index.ts", import.meta.url),
),
},
},
test: {
environment: "jsdom",
include: ["tests/**/*.test.ts"],
setupFiles: ["tests/setup/cssom.ts", "tests/setup/scroll.ts"],
},
});