Files
pentagi/frontend/vitest.config.ts
T
Sergey KozyrenkoandCursor 5319d1cb65 feat(frontend): unify list tables with URL sync, navigation, and Vitest
- Add table-state, url-params, table-filter, view-options-storage utilities
- Add hooks: pagination, table query filter, filtered list/detail navigation, inline title edit, page storage keys
- Add shared list navigation toolbar/sheet/buttons, sortable headers, inline rename input
- Refactor DataTable; integrate flows/knowledges/templates/resources/settings pages
- Remove adaptive column visibility and legacy table-storage
- Configure Vitest with tests for hooks, lib, and components

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 21:36:14 +07:00

24 lines
788 B
TypeScript

import path from 'node:path';
import { defineConfig } from 'vitest/config';
// Vitest config lives in its own file so the production `vite.config.ts`
// stays free of test-only concerns (jsdom, setup files, etc).
//
// `jsdom` is the environment because most tests under `src/` reach into
// React Testing Library at some point — pure-function suites pay a small
// fixed cost (a few ms per file) but the alternative of per-file
// `@vitest-environment` comments fragments quickly.
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
test: {
environment: 'jsdom',
globals: false,
include: ['src/**/*.{test,spec}.{ts,tsx}'],
setupFiles: ['./vitest.setup.ts'],
},
});