card-drop/tests/__functions__/discord.js/GenerateCommandInteractionMock.ts
Ethan Lane 904842ae32
Some checks failed
Test / build (push) Failing after 36s
Create /effects buy subcommand
2025-02-06 19:33:54 +00:00

12 lines
No EOL
370 B
TypeScript

import { CommandInteraction } from "../../__types__/discord.js";
export default function GenerateCommandInteractionMock(options?: {
subcommand?: string,
}): CommandInteraction {
return {
isChatInputCommand: jest.fn().mockReturnValue(true),
options: {
getSubcommand: jest.fn().mockReturnValue(options?.subcommand),
},
};
}