- Convert CacheTTL enum to const object to fix duplicate value errors - Fix import ordering in test files (eslint-disable for vi.mock pattern) - Fix unused variable warnings (prefix with underscore) - Auto-fix import ordering in subscription page, dashboard layout - 0 lint errors remaining Co-Authored-By: Paperclip <noreply@paperclip.ing>
19 lines
481 B
TypeScript
19 lines
481 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'],
|
|
environment: 'jsdom',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
globals: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '.'),
|
|
},
|
|
},
|
|
});
|