test: remove unused mock constants in application.real.test.ts

- Eliminated the mock constants for paths to simplify the test setup.
- This change enhances test clarity by focusing on relevant mocks and reducing unnecessary complexity.
This commit is contained in:
Mauricio Siu
2026-02-18 15:02:44 -06:00
parent 20acc8bce5
commit d99e0bf4dd

View File

@@ -8,20 +8,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
const REAL_TEST_TIMEOUT = 180000; // 3 minutes
// Mock constants to avoid load error
vi.mock("@dokploy/server/constants", () => ({
paths: () => ({
LOGS_PATH: "/tmp/dokploy-test-real/logs",
APPLICATIONS_PATH: "/tmp/dokploy-test-real/applications",
COMPOSE_PATH: "/tmp/dokploy-test-real/compose",
SSH_PATH: "/tmp/dokploy-test-real/ssh",
PATCH_REPOS_PATH: "/tmp/dokploy-test-real/patch-repos",
BASE_PATH: "/tmp/dokploy-test-real",
}),
IS_CLOUD: false,
docker: {},
}));
// Mock ONLY database and notifications
vi.mock("@dokploy/server/db", () => {
const createChainableMock = (): any => {