How do I matchFulfilled/matchRejected on all queries from an API? #4734
-
| I sometimes do this in  But, how do I do the same to match fulfilled/rejected request for all endpoints in an API. Something like  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            markerikson
          
      
      
        Nov 27, 2024 
      
    
    Replies: 1 comment
-
| You'd need to write a custom matcher that checks for, roughly,  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        arp
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
You'd need to write a custom matcher that checks for, roughly,
action.type.startsWith("myApi/") && action.type.endsWith("/fulfilled").