import path from 'path'; import { defineConfig } from 'vitest/config'; export default defineConfig({ // Avoid Vite trying to load the Next.js-flavored postcss.config.mjs // (array-of-strings plugin syntax), which the standalone PostCSS loader // used by Vite/Vitest cannot parse. None of our unit tests need CSS. css: { postcss: { plugins: [] } }, test: { environment: 'node', css: false }, resolve: { alias: { '@': path.resolve(__dirname, './src') } } });