- Fix palette.test.ts: use type-only import for CategoryType (verbatimModuleSyntax) - Fix vite.config.ts: import defineConfig from vitest/config for test property support - Fix tsconfig.node.json: add vitest/globals to types array - Fix AvailableBalance.tsx: split typed array and filter to preserve CategoryType literal
27 lines
540 B
TypeScript
27 lines
540 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test-setup.ts'],
|
|
},
|
|
})
|