test(web): add useDatasetScopedApiKeys to develop-page-flow mock

DevelopMain renders the SecretKeyModal, which now calls
useDatasetScopedApiKeys; the use-dataset mock in this flow test was
missing that export, causing the modal to throw at render.
This commit is contained in:
yungle246 2026-06-21 00:12:31 +09:00 committed by YungLe
parent 1edffca717
commit fdeef63c45

View File

@ -84,6 +84,7 @@ vi.mock('@/service/use-apps', () => ({
vi.mock('@/service/knowledge/use-dataset', () => ({
useDatasetApiKeys: () => ({ data: null, isLoading: false }),
useDatasetScopedApiKeys: () => ({ data: null, isLoading: false }),
useInvalidateDatasetApiKeys: () => vi.fn(),
}))