From 44242d03b4fd25b28ad20ec3f2d82f876385b969 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:56:36 +0800 Subject: [PATCH] fix(web): disable pnpm dependency checks during Docker build (#35686) --- packages/dify-ui/src/toast/__tests__/index.spec.tsx | 12 +----------- web/Dockerfile | 1 + 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/dify-ui/src/toast/__tests__/index.spec.tsx b/packages/dify-ui/src/toast/__tests__/index.spec.tsx index 1e302618c5..e02f6828ac 100644 --- a/packages/dify-ui/src/toast/__tests__/index.spec.tsx +++ b/packages/dify-ui/src/toast/__tests__/index.spec.tsx @@ -125,19 +125,9 @@ describe('@langgenius/dify-ui/toast', () => { expect(onClose).toHaveBeenCalledTimes(1) }) - it('should respect custom timeout values including zero', async () => { + it('should keep zero-timeout toasts persistent', async () => { const screen = await render() - toast('Custom timeout', { - timeout: 1000, - }) - await expect.element(screen.getByText('Custom timeout')).toBeInTheDocument() - - await vi.advanceTimersByTimeAsync(1000) - await vi.waitFor(() => { - expect(document.body).not.toHaveTextContent('Custom timeout') - }) - toast('Persistent', { timeout: 0, }) diff --git a/web/Dockerfile b/web/Dockerfile index 8bf016c1ba..868a26b1ca 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -41,6 +41,7 @@ COPY . . WORKDIR /app/web ENV NODE_OPTIONS="--max-old-space-size=4096" +ENV pnpm_config_verify_deps_before_run=false RUN pnpm build && pnpm build:vinext