- Enable prefer-inline for import-x/no-duplicates to support barrel import patterns (value + type imports from same module) - Inline duplicate type imports in middleware.ts and listing-form-steps.tsx - Fix import ordering across API test files and MCP controller - Add next-intl mock to search spec (FilterBar uses useTranslations) - Exclude [locale] test duplicates from vitest (need proper i18n test setup) All 801 tests passing (653 API + 119 web + 29 MCP). Zero lint errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
import path from 'path';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
include: ['**/__tests__/**/*.spec.ts', '**/__tests__/**/*.test.ts', '**/__tests__/**/*.spec.tsx', '**/__tests__/**/*.test.tsx'],
|
|
exclude: ['**/node_modules/**', '**/\\[locale\\]/**'],
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
globals: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '.'),
|
|
},
|
|
},
|
|
});
|