waterloo-rocketry / minerva-rewrite

The rewrite of Waterloo Rocketry's custom slackbot
MIT License
1 stars 2 forks source link

Figure out unit testing for Slack API handler functions #55

Open QuantumManiac opened 11 months ago

QuantumManiac commented 11 months ago

Given that most of minerva's logic consists of handler functions interacting with the Slack API, it would be good if we can unit test this stuff. We should look into a way to cleanly do this

A good place to start would be by looking into mocking or stubbing the bolt-js function calls using a library like sinon (or even jest itself)