From 39036202bb77c1a4870caaef6e844dae35deab98 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 7 Oct 2024 01:34:35 -0600 Subject: [PATCH] test: fix mock zip drop --- apps/dokploy/__test__/drop/drop.test.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dokploy/__test__/drop/drop.test.test.ts b/apps/dokploy/__test__/drop/drop.test.test.ts index 53890281..92821fb5 100644 --- a/apps/dokploy/__test__/drop/drop.test.test.ts +++ b/apps/dokploy/__test__/drop/drop.test.test.ts @@ -1,6 +1,6 @@ import fs from "node:fs/promises"; import path from "node:path"; -import { paths } from "@dokploy/server"; +import { paths } from "@dokploy/server/dist/constants"; const { APPLICATIONS_PATH } = paths(); import type { ApplicationNested } from "@dokploy/server"; import { unzipDrop } from "@dokploy/server"; @@ -82,11 +82,11 @@ const baseApp: ApplicationNested = { dockerContextPath: null, }; -vi.mock("@dokploy/server", async (importOriginal) => { +vi.mock("@dokploy/server/dist/constants", async (importOriginal) => { const actual = await importOriginal(); return { + // @ts-ignore ...actual, - unzipDrop: actual.unzipDrop, // Asegura que unzipDrop esté presente en el mock paths: () => ({ APPLICATIONS_PATH: "./__test__/drop/zips/output", }),