Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented Apr 5, 2023

See #31 (comment)

Currently, we're testing the Replicate client by mocking the underlying networking client 1. This provides some assurance that we're calling roughly the right things, but it's too artificial to trust with any certainty.

This PR replaces those mock statements and instead mocks at the networking layer using nock.

Footnotes

  1. Now axios, but soon native fetch. See https://github.com/replicate/replicate-javascript/pull/31

@mattt mattt merged commit 6218765 into main Apr 5, 2023
@mattt mattt deleted the mattt/nock branch April 5, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants