chore: standardize ESM-first architecture and resolve all type/test/lint errors
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Failing after 59s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-11 01:33:44 +01:00
parent eefabfa3ff
commit a12759d507
8 changed files with 181 additions and 15 deletions

24
vitest.config.mts Normal file
View File

@@ -0,0 +1,24 @@
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'next/server': 'next/server.js',
},
},
ssr: {
noExternal: ['@mintel/next-utils', 'next-intl'],
},
test: {
environment: 'happy-dom',
globals: true,
exclude: ['**/node_modules/**', '**/.next/**', '**/dist/**'],
include: ['**/*.test.{ts,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
},
});