-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for SDK #54
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Is it worth changing these to
Given that this is classed as an e2e test then I can see value in querying the actual API. It's nice to verify that the implementation works in reality and not just in whatever we mocked 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Just left a few questions.
Co-authored-by: Paul <[email protected]>
97c0b62
to
862138c
Compare
Okay I've disabled the mocks in CI, 👍 |
closes ACX-2648
E2E tests
NOTE:
Our use of a singleton does make unit tests slightly tricky (for the client initialization at least). Many properties and methods on our AcrossClient are private, thus not available for testing purposes.
QUESTION:
@dohaki @pxrl
Currently we are using MSW to mock api responses for quote, fees and chain info. In retrospect, this might not be necessary since our api is pretty open and inexpensive. We can turn off mocking with an env var, should we do this?