(overrides = {})
| 34 | } |
| 35 | |
| 36 | function createInteraction(overrides = {}) { |
| 37 | return { |
| 38 | id: 'interaction-1', |
| 39 | createdTimestamp: Date.now(), |
| 40 | deferred: false, |
| 41 | replied: false, |
| 42 | guildId: 'guild-1', |
| 43 | channelId: 'channel-1', |
| 44 | commandName: 'ping', |
| 45 | type: 2, |
| 46 | customId: null, |
| 47 | user: { id: 'user-1' }, |
| 48 | async reply() {}, |
| 49 | async editReply() {}, |
| 50 | ...overrides |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | test('expired interaction path logs INTERACTION_EXPIRED and skips reply', async () => { |
| 55 | const capture = createLoggerCapture(); |
no outgoing calls
no test coverage detected