mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-10-29 18:16:01 +00:00
- 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>
24 lines
788 B
TypeScript
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'],
|
|
},
|
|
});
|