Conversation
- Add wiremockMapperMatchers with toHaveBeenRequested, toHaveBeenRequestedWith, and toHaveBeenRequestedTimes - Add global matcher configuration via Configuration.setMatcherOptions - Include built-in retry logic for async request verification - Export Jest matchers as optional utility from main index - Add TypeScript declarations for Jest matcher interface 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add comprehensive e2e tests using testcontainers for WireMock - Test Jest matchers with real WireMock server - Add testcontainers dependency - Test complex JSON payloads and request verification - Verify global and local matcher configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add separate tsconfig.build.json for clean build artifacts - Update ESLint config to ignore dist directory - Maintain linting for spec files while excluding from build - Update build script to use separate TypeScript config 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add Jest matchers section with setup instructions - Document all three matchers: toHaveBeenRequested, toHaveBeenRequestedWith, toHaveBeenRequestedTimes - Add global configuration documentation - Include matcher options table and examples - Add complete test example showing typical usage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive Jest matcher support for testing WireMock interactions, along with e2e testing infrastructure and improved build configuration.
✨ New Features
Jest Matchers
toHaveBeenRequested(options?)- Verify stub received at least one requesttoHaveBeenRequestedWith(expected, options?)- Verify stub received request with specific payloadtoHaveBeenRequestedTimes(expectedCount, options?)- Verify stub received exact number of requestsConfiguration.setMatcherOptions()E2E Testing
Developer Experience
tsconfig.build.json) for clean artifacts🔧 Technical Details
Configuration