mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
24 lines
644 B
TypeScript
24 lines
644 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"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@src": path.resolve(__dirname, "./src"),
|
|
"@roo": path.resolve(__dirname, "../src/shared"),
|
|
// Mock the vscode module for tests since it's not available outside
|
|
// VS Code extension context.
|
|
vscode: path.resolve(__dirname, "./src/__mocks__/vscode.ts"),
|
|
},
|
|
},
|
|
})
|