Conversation
|
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! |
… my last commit. Its fixed now
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