feat: Add deployment guide and update README for Coolify setup; include dotenv for environment variable management
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { ChatInputCommandInteraction } from "discord.js";
|
||||
import { pingCommand } from "../../src/commands/ping";
|
||||
|
||||
describe("pingCommand", () => {
|
||||
it("replies with Pong", async () => {
|
||||
const reply = jest.fn().mockResolvedValue(undefined);
|
||||
|
||||
await pingCommand.execute({ reply } as any);
|
||||
await pingCommand.execute({
|
||||
reply,
|
||||
} as unknown as ChatInputCommandInteraction);
|
||||
|
||||
expect(reply).toHaveBeenCalledWith("Pong!");
|
||||
});
|
||||
|
||||
@@ -20,15 +20,16 @@ describe("signUpCommand", () => {
|
||||
(getTourSchedule as jest.Mock).mockReturnValue(queue);
|
||||
});
|
||||
|
||||
function createInteraction(action: string): any {
|
||||
function createInteraction(action: string) {
|
||||
return {
|
||||
inGuild: () => true,
|
||||
guildId: "guild-1",
|
||||
user: { id: "user-1" },
|
||||
guild: { id: "guild-1" },
|
||||
memberPermissions: {
|
||||
has: jest.fn((permission: bigint) =>
|
||||
permission === PermissionFlagsBits.ManageChannels,
|
||||
has: jest.fn(
|
||||
(permission: bigint) =>
|
||||
permission === PermissionFlagsBits.ManageChannels,
|
||||
),
|
||||
},
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user