Skip to main content
Private preview: this is rolling out and may not be available on your account yet.
fakeFetch is the scripted transport the SDK’s own tests run on. Give it the responses you want, pass its fetch to your client, and read back the requests your code sent.
Authentication, response validation, error handling and link following all run as they would against the API, so a test can check them end to end.
@sumvin/sdk/testing is for tests only. It is kept out of the main entry point so it can’t end up in a production bundle; don’t import it from production code.