mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-05 14:05:30 +02:00
- Added steps to install Nixpacks and Railpack in the CI workflow for testing jobs. - Updated the PATH to include build tools for better accessibility during the build process. - Improved Vitest configuration to ensure proper TypeScript path resolution.
30 lines
638 B
TypeScript
30 lines
638 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",
|
|
},
|
|
define: {
|
|
"process.env": {
|
|
NODE: "test",
|
|
},
|
|
},
|
|
plugins: [
|
|
tsconfigPaths({
|
|
projects: [path.resolve(__dirname, "../tsconfig.json")],
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@dokploy/server": path.resolve(
|
|
__dirname,
|
|
"../../../packages/server/src",
|
|
),
|
|
},
|
|
},
|
|
});
|