- Remove unused ReactNode import in useAuth.test.tsx - Use vitest/config for defineConfig to recognize test property - Add vitest/globals to tsconfig types for test runner globals
22 lines
447 B
TypeScript
22 lines
447 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 8181,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5082',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
globals: true,
|
|
},
|
|
})
|