Closed codyswanner closed 1 month ago
TopAppBar snapshot committed in 0e0cf4d
App snapshot committed in 9e4343f
Going a different direction on this -- snapshots are not required or even appropriate for all components, and in fact are not recommended by MUI. Snapshot tests will be added as necessary and appropriate while writing other tests.
Write the code for Jest to create snapshots of all the rendered components.
Top-Level modules
TopAppBar
LeftDrawer
ImageFrame
In almost all cases, the code will look something like this, where "Subject" is the component being tested:
Not sure if it is possible or appropriate to render only the test subject, not all it's children? Seems like rendering the entire tree below the component would be highly redundant if each component will be tested, and not particularly helpful for debugging.