mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:06:51 +08:00
fix(web): disable pnpm dependency checks during Docker build (#35686)
This commit is contained in:
parent
ed7ea68f7d
commit
44242d03b4
@ -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(<ToastHost />)
|
||||
|
||||
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,
|
||||
})
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user