Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Successful in 2m42s
🚀 Build & Deploy / 🏗️ Build (push) Failing after 10m25s
🚀 Build & Deploy / 🚀 Deploy (push) Has been skipped
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'happy-dom',
|
|
environmentOptions: {
|
|
happyDOM: {
|
|
settings: {
|
|
disableIframePageLoading: true,
|
|
disableJavaScriptFileLoading: true,
|
|
disableCSSFileLoading: true,
|
|
}
|
|
}
|
|
},
|
|
globals: true,
|
|
setupFiles: ['./tests/setup.tsx'],
|
|
alias: [
|
|
{ find: 'next/server', replacement: 'next/server.js' },
|
|
{ find: '@payload-config', replacement: fileURLToPath(new URL('./tests/__mocks__/payload-config.ts', import.meta.url)) },
|
|
{ find: '@', replacement: fileURLToPath(new URL('./', import.meta.url)) },
|
|
],
|
|
exclude: ['**/node_modules/**', '**/.next/**'],
|
|
server: {
|
|
deps: {
|
|
inline: ['next-intl', '@mintel/next-utils'],
|
|
},
|
|
},
|
|
},
|
|
});
|