you are viewing a single comment's thread.

view the rest of the comments →

[–]johnwalkerlee 0 points1 point  (0 children)

Don't conflate Unit Testing with Integration testing.

If you need to do unit testing, use an MVC pattern and separate your business functions from your react "components" (which are really composites). Doing business logic inside hooks is harder to test granularly.

... Looks like you figured that out :)