This type of tests test the logic of React hooks. Those are tested mainly when the logic is business critical or logic within it is complicated. Otherwise, you should avoid writing tests for it.
There are two ways of testing hooks with RTL:
This type of tests test the logic of React hooks. Those are tested mainly when the logic is business critical or logic within it is complicated. Otherwise, you should avoid writing tests for it.
There are two ways of testing hooks with RTL: