Try a component test

This commit is contained in:
shamoon
2026-02-02 22:10:12 -08:00
parent 75e1e560bc
commit 66136701c2
2 changed files with 85 additions and 0 deletions

View File

@@ -2,6 +2,11 @@ import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vitest/config";
export default defineConfig({
// Next.js handles JSX via SWC; Vitest uses Vite/esbuild, so enable the modern JSX runtime
// to avoid requiring `import React from "react"` in every JSX file.
esbuild: {
jsx: "automatic",
},
resolve: {
alias: {
components: fileURLToPath(new URL("./src/components", import.meta.url)),