Add Tests
daneden opened this issue · comments
A valid question asked by early contributors: How do we test new methods?
We need to add a testing suite to this project to make contributions easier.
Twitter publishes the v2 API OpenAPI spec here: https://api.twitter.com/2/openapi.json
There may be a way to intercept the call
function in a test suite and check constructed URLRequests against this spec!
Combined with Mockoon (https://mockoon.com/tutorials/run-mock-api-anywhere-cli/) this could all happen in GitHub Actions, if not locally via Xcode.