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.
25 lines
675 B
TypeScript
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"],
|
|
},
|
|
})
|