nylas / nylas-nodejs

A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
MIT License
169 stars 118 forks source link

mock mode support #462

Open ianzone opened 1 year ago

ianzone commented 1 year ago

be able to create a mock nylas instance that can return mock data when running unit tests.

pgsnimble commented 1 year ago

Good idea, it would make easier to integration tests. Another approach that you could follow is to use nock in order to mock Nylas requests. It works very well.

But I agree that having this already implemented in the sdk would help a lot