mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import path from "path"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
include: ["src/**/*.test.{ts,tsx}", "tests/**/*.test.{ts,tsx}"],
|
|
coverage: {
|
|
reporter: ["text", "json", "html"],
|
|
exclude: ["node_modules/", "dist/"],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
vscode: path.resolve(__dirname, "src/vscode-shim.ts"),
|
|
// Match tsconfig paths - baseUrl is parent directory
|
|
"@": path.resolve(__dirname, "../src"),
|
|
"@api": path.resolve(__dirname, "../src/core/api"),
|
|
"@core": path.resolve(__dirname, "../src/core"),
|
|
"@generated": path.resolve(__dirname, "../src/generated"),
|
|
"@hosts": path.resolve(__dirname, "../src/hosts"),
|
|
"@integrations": path.resolve(__dirname, "../src/integrations"),
|
|
"@packages": path.resolve(__dirname, "../src/packages"),
|
|
"@services": path.resolve(__dirname, "../src/services"),
|
|
"@shared": path.resolve(__dirname, "../src/shared"),
|
|
"@utils": path.resolve(__dirname, "../src/utils"),
|
|
},
|
|
},
|
|
})
|