You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
In a recent Pull Request, I've added a mock implementation of a dataloader to test a certain behavior of one of my loader. We should document these kind of mock/helpers functions dedicated to testing.
@real34 mentioned that we could add a Testing section containing these kinds of things.
So let's do this! :)
A few notes about the mock implementation of a dataloader :
In a recent Pull Request, I've added a mock implementation of a dataloader to test a certain behavior of one of my loader. We should document these kind of mock/helpers functions dedicated to testing.
@real34 mentioned that we could add a
Testing
section containing these kinds of things.So let's do this! :)
A few notes about the mock implementation of a dataloader :
createLoader
behaves exactly like the memoize.createLoaderhasMockDataloaderCache(key, id)
lets you know if a certain value is already cached for a particular dataloaderresetAllMockDataloaders
resets all your dataloaders (you usually want to call this function before/after each test.The text was updated successfully, but these errors were encountered: