mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
- Add react-error-boundary dependency to webview-ui package - Create custom ErrorBoundary component with VSCode-themed fallback UI - Add internationalization support for error messages - Wrap all major view components (ChatView, SettingsView, HistoryView, etc.) with error boundaries - Implement error reporting utility for centralized error collection - Add comprehensive test coverage for ErrorBoundary component - Configure Vitest for React development mode to support testing Fixes #5731
24 lines
532 B
TypeScript
24 lines
532 B
TypeScript
import { defineConfig } from "vitest/config"
|
|
import path from "path"
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
watch: false,
|
|
reporters: ["dot"],
|
|
silent: true,
|
|
environment: "jsdom",
|
|
include: ["src/**/*.spec.ts", "src/**/*.spec.tsx"],
|
|
},
|
|
define: {
|
|
"process.env.NODE_ENV": '"development"',
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@src": path.resolve(__dirname, "./src"),
|
|
"@roo": path.resolve(__dirname, "../src/shared"),
|
|
},
|
|
},
|
|
})
|