mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-10 11:12:13 +02:00
* fix: fix org scoped access for resources * Fix auth and config validation regressions * fix: track org config validation timestamp * fix: backfill org model configuration v2 from legacy user rows Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * test: align config tests with org-level v2 resolution Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * chore: helm example values tweaks Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
28 lines
792 B
TypeScript
28 lines
792 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
// Expose afterEach etc. globally so @testing-library/react auto-registers
|
|
// its DOM cleanup between tests.
|
|
globals: true,
|
|
include: ['src/**/*.test.{ts,tsx}'],
|
|
server: {
|
|
deps: {
|
|
// Inline @stackframe so vi.mock('@stackframe/stack') also intercepts the
|
|
// package's internal imports of its own index (e.g. team-switcher.js
|
|
// importing useUser from '../index.js').
|
|
inline: [/@stackframe/],
|
|
},
|
|
},
|
|
},
|
|
});
|