WIP: Start of drop command tests
Some checks failed
Test / build (push) Failing after 46s

This commit is contained in:
Ethan Lane 2025-04-24 19:56:07 +01:00
parent 4ff8d15e2c
commit 78963d6b7c
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",
},
};
}