diff --git a/src/components/creation-home/CreationLandingView.test.tsx b/src/components/creation-home/CreationLandingView.test.tsx index d1f0f2b4e..656ef8f46 100644 --- a/src/components/creation-home/CreationLandingView.test.tsx +++ b/src/components/creation-home/CreationLandingView.test.tsx @@ -12,6 +12,7 @@ import userEvent from '@testing-library/user-event'; import { type ContextType, startTransition, Suspense } from 'react'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { clearSignedAssetReadUrlCache } from '../../services/assetReadUrlService'; import { AuthUiContext } from '../auth/AuthUiContext'; import { CreationLandingView } from './CreationLandingView'; @@ -153,6 +154,7 @@ function SuspendAfterLandingRender({ active }: { active: boolean }) { describe('CreationLandingView', () => { beforeEach(() => { + clearSignedAssetReadUrlCache(); listPublicEditorProjectResourcesMock.mockResolvedValue([]); }); @@ -161,6 +163,7 @@ describe('CreationLandingView', () => { listPublicEditorProjectResourcesMock.mockReset(); createEditorProjectMock.mockReset(); toggleEditorShowcaseAssetLikeMock.mockReset(); + clearSignedAssetReadUrlCache(); vi.restoreAllMocks(); vi.unstubAllGlobals(); });