> unit test anything but the individual pieces
Isn't that the definition of a unit test?
Isn't that the definition of a unit test?
Unit tests are for testing individual components of your application (web or otherwise)
e2e or integration tests are for testing your application component/lib/api/whatever boundaries
If you are using hooks in your components, you need the global store instance. To call this unit testing is too big a stretch for me.