mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
- Upgraded @types/node from version ^18.19.104 to ^20.16.0 in package.json files for apps/api, apps/dokploy, apps/schedules, and packages/server. - Adjusted pnpm-lock.yaml to reflect the updated @types/node version across all relevant dependencies. - Added a new setup file for mock database interactions in the dokploy app to enhance testing capabilities.
35 lines
815 B
TypeScript
35 lines
815 B
TypeScript
import path from "node:path";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["__test__/**/*.test.ts"], // Incluir solo los archivos de test en el directorio __test__
|
|
exclude: ["**/node_modules/**", "**/dist/**", "**/.docker/**"],
|
|
pool: "forks",
|
|
setupFiles: [path.resolve(__dirname, "setup.ts")],
|
|
},
|
|
define: {
|
|
"process.env": {
|
|
NODE: "test",
|
|
GITHUB_CLIENT_ID: "test",
|
|
GITHUB_CLIENT_SECRET: "test",
|
|
GOOGLE_CLIENT_ID: "test",
|
|
GOOGLE_CLIENT_SECRET: "test",
|
|
},
|
|
},
|
|
plugins: [
|
|
tsconfigPaths({
|
|
projects: [path.resolve(__dirname, "../tsconfig.json")],
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@dokploy/server": path.resolve(
|
|
__dirname,
|
|
"../../../packages/server/src",
|
|
),
|
|
},
|
|
},
|
|
});
|