Files
Spaghet.io/vitest.config.ts
T
spaghet 3fef5d378e chore(deps): upgrade tailwind to v4 via vite plugin
Replace @astrojs/tailwind with @tailwindcss/vite in the Astro config and lockfile to adopt Tailwind CSS v4 and simplify the build setup. Also update Markdown site content with current SpaghetAI/MarvinBlade infrastructure details.
2026-11-04 12:31:58 -05:00

25 lines
675 B
TypeScript

// vitest.config.ts
import { defineConfig } from "vitest/config"
import { fileURLToPath } from "node:url"
// Mirrors the tsconfig path aliases so modules under test can import via @lib/...
const src = fileURLToPath(new URL("./src", import.meta.url))
export default defineConfig({
resolve: {
alias: {
"@lib": `${src}/lib`,
"@components": `${src}/components`,
"@layouts": `${src}/layouts`,
"@pages": `${src}/pages`,
"@styles": `${src}/styles`,
"@consts": `${src}/consts.ts`,
"@types": `${src}/types.ts`,
},
},
test: {
environment: "node",
include: ["src/**/__tests__/**/*.test.ts", "src/**/*.test.ts"],
},
})