Open joeldesante opened 2 years ago
Creating test cases for discord.js is notoriously annoying. However, I recommend using mock objects if you want to get the job done.
Creating test cases for discord.js is notoriously annoying. However, I recommend using mock objects if you want to get the job done.
Good idea. And yes, I think I tried to do this a while ago and gave up when I realized how annoying it can be. WIth that in mind, we still might be able to test individual units of the bot by directly calling the functions. And we can probably just assume that DiscordJS will work given that they probably test their releases on their end anyway.
Bumping this issue because I'm finding it challenging to test all of our bots commands and features manually.
Test cases for each component of the bot need to be made.