Seeing as the original issue (#727) was closed over a year ago (with no real conclusion to the issue), and unit testing is still a hassle to implement, I'm opening this issue.
Describe the ideal solution
The ideal solution would be for snippets like the one below to simply work:
import {Guild, TextChannel, Message} from 'discord.js';
import {MockClient} from 'discord.js/mock';
const client = new MockClient();
const guild = new Guild(client, {});
const channel = new TextChannel(guild, {});
const msg = new Message(channel, {}, client);
msg.awaitReactions(r => r.emoji.name === '👍').then(() => {
console.log('Thumbs up!');
});
msg.react('👍');
Seeing as the original issue (#727) was closed over a year ago (with no real conclusion to the issue), and unit testing is still a hassle to implement, I'm opening this issue.
Describe the ideal solution
The ideal solution would be for snippets like the one below to simply work: