Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
c626c51
test(explore-bookmarks): add initial tests for snapshot and rendering
Apr 14, 2025
8538d13
test(explore-bookmarks): ensure hidden bookmarks are not rendered
Apr 14, 2025
320d641
test(explore-bookmarks): add test to verify the order of bookmark pub…
Apr 14, 2025
c330733
test(explore-bookmarks): add test for empty bookmarks case
Apr 14, 2025
c350d3e
test(explore-bookmarks): add test to render bookmarks with correct up…
Apr 15, 2025
6956c29
test(explore-loader): add initial snapshot test
Apr 15, 2025
18e48c7
test(explore-loader): add render test for LoadingScreen component
Apr 15, 2025
c33d94d
test(explore-loader): renders the LoadingScreen component with correc…
Apr 15, 2025
b419ad5
test(explore-loader): renders the LoadingScreen component with correc…
Apr 15, 2025
d22b820
test(explore-loader): add test to confirm absence of non-existent ele…
Apr 15, 2025
5bf99c0
test(explore-top-publications.skeleton): add initial snapshot test .
Apr 15, 2025
28ec903
test(explore-publications): add tests for carousel rendering and skel…
Apr 15, 2025
0caa292
test(ExplorePublicationsSkeleton): renders the correct title in the s…
Apr 15, 2025
6d1e84c
chore: Rename snapshot file.
Apr 15, 2025
4c3f9ee
test(explore-publications): add failure tests for unexpected elements…
Apr 15, 2025
6b76fce
test(explore-publications): add snapshot test with mocks for lens pro…
Apr 15, 2025
6631016
test(explore-publications): ensure title renders and dispatch sets lo…
Apr 15, 2025
67f27f8
test(explore-publications): add responsive behavior tests
Apr 15, 2025
ef46422
test(explore-top-publications.skeleton): add initial snapshot test
Apr 15, 2025
9484ef6
test(explore-top-publication.skeletons): render the correct number of…
Apr 15, 2025
23393f9
test(explore-top-publications.skeletons): add style checks and expect…
Apr 15, 2025
cd61af3
test(explore-top-publications): add initial snapshot and create share…
Apr 15, 2025
d1998f2
test(ExploreTopPublications ): update mock data and snapshot for comp…
Apr 16, 2025
5278d85
test(ExploreTopPublicationss): add render test with content check
Apr 16, 2025
b1e6c3a
test(ExploreTopPublications): add test to dispatch loading state to …
Apr 16, 2025
9bb24e1
test(ExploreTopPublications): add test to check correct number of ren…
Apr 16, 2025
c8d35bf
test(ExploreTopPublications): ensure no duplicate posts are rendered …
Apr 16, 2025
58c6930
test(ExploreCreators): add inital snapshot test
Apr 16, 2025
2775989
test(explore-creators): fix snapshot by adjusting profile mock metadata
Apr 16, 2025
41458e7
test(ExploreCreators): add tests for creator count and hidden creators
Apr 16, 2025
ecc2007
fix(ExploreCreators): prevent rendering of hidden creators in explore
Apr 16, 2025
aed6cdb
test(ExploreCreators): fix duplicate creator mock in ExploreCreators …
Apr 16, 2025
f6c9e78
fix(ExploreCreatorsSkeleton): create initial snapshot and fix prop type
Apr 16, 2025
30d666d
test(explore-creators): add tests for ExploreCarouselSkeleton renderi…
Apr 17, 2025
1f6bc93
test(explore-creators-skeleton): add negative tests for component ren…
Apr 17, 2025
1f0d136
test(explore-creators-skeleton): add negative tests for component ren…
Apr 17, 2025
259a365
test(ExploreCreatorsSkeletons):ensure correct number of skeleton item…
Apr 17, 2025
05b0096
test(ExplorePublicationsSkeleton): update snapshots after fixing mock…
Apr 17, 2025
0bf03c4
test(ExploreCarouselSkeleton): add initial snapshot test.
Apr 17, 2025
6655dd0
test(ExploreCarouselSkeleton): add test for rendering two skeleton i…
Apr 17, 2025
a5fb3c6
test(ExploreCarouselSkeleton): mock useItemsPerSlide and improve test…
Apr 17, 2025
82d1db9
test(ExploreCarouselSkeleton): add tests for missing title, skeleton …
Apr 17, 2025
1dff2bf
fix: add dispatch to useEffect dependencies array
Apr 17, 2025
46d47f9
test(ExploreView): Add mock and initial snapshot test.
Apr 17, 2025
a84f45d
test(explore): ensure public sections always render and bookmarks hid…
Apr 17, 2025
5e0f9f2
test(ExploreView): Render bookmarks when user is authenticated
Apr 17, 2025
132c6b7
fix(test): resolve issue with authentication validation in explore-vi…
Apr 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
export const useExplorePublications = vi.fn(() => ({
data: [
{
id: "pub-1",
metadata: {
title: "Prueba de titulo",
content: "Contenido de prueba para explorar publicaciones",
},
by: {
id: "user-1",
metadata: {
picture: {
optimized: {
uri: "https://placehold.co/40x40",
},
},
displayName: "Alex Talavera",
},
handle: {
localName: "Alex200207",
},
},
operations: {
hasBookmarked: false,
},
},
{
id: "pub-1",
metadata: {
title: "Prueba de titulo",
content: "Contenido de prueba para explorar publicaciones",
},
by: {
id: "user-1",
metadata: {
picture: {
optimized: {
uri: "https://placehold.co/40x40",
},
},
displayName: "Alex Talavera",
},
handle: {
localName: "Alex200207",
},
},
operations: {
hasBookmarked: false,
},
},
],
}));

export const usePublications = vi.fn(() => ({
data: [
{
id: "pub-1",
globalStats: { upvotes: 500 },
metadata: { content: "Publicación de prueba" },
},
{
id: "pub-1",
globalStats: { upvotes: 500 },
metadata: { content: "Otra publicación de prueba" },
},
],
loading: false,
}));

export const useBookmarkToggle = vi.fn(() => ({
execute: vi.fn(),
isPending: false,
}));

export const appId = (id: string) => id;

export const PublicationType = {
Post: "Post",
};

export const ExplorePublicationType = {
Post: "Post",
};

export const LimitType = {
Ten: 10,
};

export const ExplorePublicationsOrderByType = {
TopCommented: "TopCommented",
};
Loading
Loading