Pact v16.4.0, released on 2026-05-04, focuses on a single key feature:
Features: A new function, addInteractionReference, has been added to V4 DSL classes. This allows developers and QA engineers to incorporate external references directly into their Pact interactions. This enhancement is designed to support scenarios where interactions need to be linked to external identifiers or documentation.
(Source: Pact-JS v16.4.0 Changelog)
This update provides QA teams with improved capabilities for managing and tracing contract tests. The ability to add external references to interactions can simplify the organization of tests in distributed architectures, making it easier to correlate contract definitions with external system documentation or identifiers. This leads to better maintainability and understanding of contract test suites.
Frequently Asked Questions
What is the primary new feature in Pact v16.4.0?
The main new feature is the `addInteractionReference` function, added to V4 DSL classes.
What is the purpose of `addInteractionReference`?
It enables the inclusion of external references within Pact interactions, improving traceability and linking capabilities.
How does this update help QA engineers?
It offers greater flexibility in managing and linking contract test interactions to external systems or documentation, streamlining complex test setups.