From f4b5d55f24c5d7d9c2aa7ba4eddb71eebee5c847 Mon Sep 17 00:00:00 2001 From: iven Date: Sun, 3 May 2026 23:21:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E5=A2=9E=E5=8A=A0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=B5=8B=E8=AF=95=E8=B6=85=E6=97=B6=E8=87=B3=2015s=20?= =?UTF-8?q?=E2=80=94=20=E8=A6=86=E7=9B=96=E7=8E=87=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E9=81=BF=E5=85=8D=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/test/factories/listPageTests.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/test/factories/listPageTests.tsx b/apps/web/src/test/factories/listPageTests.tsx index 1363b4c..5dc9f2c 100644 --- a/apps/web/src/test/factories/listPageTests.tsx +++ b/apps/web/src/test/factories/listPageTests.tsx @@ -1,4 +1,4 @@ -import { describe, it, expect } from 'vitest'; +import { describe, it, expect, vi } from 'vitest'; import { screen, waitFor } from '@testing-library/react'; import { http, HttpResponse } from 'msw'; import { server } from '../mocks/server'; @@ -61,6 +61,7 @@ export function createListPageTests(config: ListPageTestConfig) { } it('渲染加载状态并显示数据', async () => { + vi.setConfig({ testTimeout: 15000 }); setupMock(config.mockItems); renderWithProviders(, { route });