Problem: I want to test my React app's error boundaries
Problem: I want to test my React app's error boundaries.
Solution: Force an error via search params.
This hook throws an error when a "throwError" search param is present. I use this to test my ErrorBoundaries in my automated tests too.
