unit test issue
Hello,
When testing a component that uses Refine's
APage › should search automatically when there are filters on initial load
[useGo]: [action: show] is not defined for [resource: a]
- The test should run without throwing the routing error
- This happens even though we've mocked the hook to handle this exact case
2. Is there additional configuration needed to define available actions for resources in the test environment?
3. Are we missing any required setup in our test environment for Refine's routing to work properly?
When testing a component that uses Refine's
useGo hook with the "show" action, we're encountering the following error:APage › should search automatically when there are filters on initial load
[useGo]: [action: show] is not defined for [resource: a]
Expected Behavior
- TheuseGo hook should accept the "show" action for any resource and generate the appropriate URL- The test should run without throwing the routing error
Current Behavior
- The hook throws an error indicating that the "show" action is not defined for the "a" resource- This happens even though we've mocked the hook to handle this exact case
Questions
1. What is the correct way to mock theuseGo hook for testing components that use the "show" action?2. Is there additional configuration needed to define available actions for resources in the test environment?
3. Are we missing any required setup in our test environment for Refine's routing to work properly?
