mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 20:45:17 +00: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
|
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
|
// Mock ONLY database and notifications
|
||||||
vi.mock("@dokploy/server/db", () => {
|
vi.mock("@dokploy/server/db", () => {
|
||||||
const createChainableMock = (): any => {
|
const createChainableMock = (): any => {
|
||||||
|
|||||||
Reference in New Issue
Block a user