Skip to content

Conversation

@johnemersonatdoshii
Copy link

As stated in the README, including the third param and setting it to true to enable strict payload matching, but the third parameter was not provided. PR includes the third parameter 👍🏽

Not all payload parameters must be defined to match
(you can force strict matching by passing third param `strict: true`):
```typescript
snsMock
.on(PublishCommand, {
Message: 'My message',
})
.resolves({
MessageId: '12345678-4444-5555-6666-111122223333',
});
```

@johnemersonatdoshii johnemersonatdoshii changed the title Update readme to include strict param example for exact payload matching docs: Update readme to include strict param example for exact payload matching May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant