Package-level declarations
Types
Creates a fake infinite query key that returns the result of the given mock function.
Creates a fake mutation key that returns the result of the given mock function.
Creates a fake query key that returns the result of the given mock function.
Creates a fake subscription key that returns the result of the given mock function.
This extended interface of the SwrClient provides the capability to mock specific queries and mutations for the purpose of testing. By registering certain keys as mocks, you can control the behavior of these specific keys while the rest of the keys function normally. This allows for more targeted and precise testing of your application.
This extended interface of the SwrClientPlus provides the capability to mock specific queries, mutations, and subscriptions for the purpose of testing. By registering certain keys as mocks, you can control the behavior of these specific keys while the rest of the keys function normally. This allows for more targeted and precise testing of your application.
Functions
Switches SwrClient to a test interface.
Switches SwrClientPlus to a test interface.