diff --git a/src/utils/library/genreBrowsePlayback.test.ts b/src/utils/library/genreBrowsePlayback.test.ts index 1bc37602..f3eec564 100644 --- a/src/utils/library/genreBrowsePlayback.test.ts +++ b/src/utils/library/genreBrowsePlayback.test.ts @@ -26,7 +26,11 @@ vi.mock('./libraryReady', () => ({ libraryIsReady: vi.fn(), })); -vi.mock('./genreAlbumBrowse', () => ({ +// Spread the real leaf module so other consumers pulled in transitively (the +// album barrel reaches this via the artist↔album edge → useGenreAlbumBrowse needs +// GENRE_ALBUM_FIRST_PAGE); only fetchGenreAlbumTotal is stubbed here. +vi.mock('./genreAlbumBrowse', async (importOriginal) => ({ + ...(await importOriginal()), fetchGenreAlbumTotal: vi.fn(), }));