WIP: Start of drop command tests

This commit is contained in:
Ethan Lane 2025-04-24 19:56:07 +01:00 committed by Vylpes
parent c08401084b
commit d457a87fff
3 changed files with 117 additions and 4 deletions

View file

@ -4,9 +4,14 @@ export default function GenerateCommandInteractionMock(options?: {
subcommand?: string,
}): CommandInteraction {
return {
deferReply: jest.fn(),
editReply: jest.fn(),
isChatInputCommand: jest.fn().mockReturnValue(true),
options: {
getSubcommand: jest.fn().mockReturnValue(options?.subcommand),
},
user: {
id: "userId",
},
};
}