Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Successful in 2m28s
Build & Deploy / 🏗️ Build (push) Successful in 4m45s
Build & Deploy / 🚀 Deploy (push) Failing after 13s
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
23 lines
683 B
TypeScript
23 lines
683 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'happy-dom',
|
|
globals: true,
|
|
setupFiles: ['./tests/setup.tsx'],
|
|
alias: {
|
|
'next/server': 'next/server.js',
|
|
'@payload-config': new URL('./tests/__mocks__/payload-config.ts', import.meta.url).pathname,
|
|
'@': new URL('./', import.meta.url).pathname,
|
|
},
|
|
exclude: ['**/node_modules/**', '**/.next/**'],
|
|
server: {
|
|
deps: {
|
|
inline: ['next-intl', '@mintel/next-utils'],
|
|
},
|
|
},
|
|
},
|
|
});
|