How to mock RouterContextProvider?

I’m using useRoutePath() in my component. When I run tests I get following error:


Is there a standard way to mock RouterContextProvider? There are LocationProvider and ParamsProvider that can be used in the tests, but I couldn’t find anything similar for useRoutePath().