mirror of
https://github.com/Noooste/garage-ui.git
synced 2026-07-26 07:48:13 +00:00
c0976a1e1d
* feat(preview): implement object preview functionality with token-based access * docs: update README to include inline object preview feature * test: add range read error handling and attachment content disposition tests
25 lines
667 B
TypeScript
25 lines
667 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: [
|
|
'src/lib/preview-utils.ts',
|
|
'src/lib/highlight.ts',
|
|
'src/hooks/useObjectPreview.ts',
|
|
'src/components/buckets/ObjectPreview.tsx',
|
|
],
|
|
thresholds: { statements: 90, branches: 90, functions: 90, lines: 90 },
|
|
},
|
|
},
|
|
});
|