mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-06-03 07:16:45 +00:00
Install vitest, @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, and happy-dom as dev dependencies. Configure vitest with happy-dom environment, path aliases, and test setup file. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
17 lines
339 B
TypeScript
17 lines
339 B
TypeScript
import path from 'path';
|
|
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'happy-dom',
|
|
setupFiles: ['./src/test-setup.ts'],
|
|
},
|
|
});
|