Coder Social home page Coder Social logo

Comments (3)

bradleyd avatar bradleyd commented on July 17, 2024

@cloudbring I waffled on the integration tests vs mocking the http calls. I could not decide and got pulled in another direction. I cringe a little to have a sendgrid test account to run these tests. With that said, I am completely open to a better approach ;)
There are tools--now--that may be worth the investment such as exvcr
or mock

from exgrid.

bradleyd avatar bradleyd commented on July 17, 2024

I have removed the integration tests. I have replaced them with unit mocks.

from exgrid.

thinkingserious avatar thinkingserious commented on July 17, 2024

Hi @bradleyd,

You can now use prism via stoplight.io in combination with our Open API specification to mock out all SendGrid API calls. Here is an example.

With Best Regards,

Elmer

from exgrid.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.