Skip to content

Conversation

@angelinamkr
Copy link
Member

@angelinamkr angelinamkr commented Jun 17, 2025

Implemented the view all feature where there is a 'view all' button next to each gallery so that when you click, it shows all the tutorials in the gallery

@angelinamkr
Copy link
Member Author

For this unit test, I focused on verifying the core functionality of the "View All" button.

I didn’t use React rendering or snapshot testing because our current test environment doesn’t support JSX/TSX parsing or a full React rendering pipeline like Babel or TypeScript transpilation. Right now, trying to mount components like Projects or GalleryViewerDialog causes errors due to how Node handles these files without a build step or extra setup.

That said, the logic for calling showGalleryViewer is still fully testable without rendering, so this test simulates that behavior in isolation. It keeps things simple and avoids adding new dependencies for now.

If this is something we want to support moving forward, I can work on adding the setup.

Let me know if I should start on that, or if I should focus on other features!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants