mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user