You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using MatchersV3.reify in the project to strip Matchers from the object and use payload for assertion.
However, MatchersV3.nullValue() is not processed.
Software versions
OS: 22.04.2-Ubuntu
Consumer Pact library: Pact JS v13.1.0
Node Version: v18.19.0
Issue Checklist
Please confirm the following:
I have upgraded to the latest
I have the read the FAQs in the Readme
I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
I have set my log level to debug and attached a log file showing the complete request/response cycle
For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
Expected behaviour
MatchersV3.nullValue() is processed correctly and value is transformed to null
Actual behaviour
The reify method doesn't process MatchersV3.nullValue() matcher
Expected value to deeply and strictly equal to:
{"nullProp": null, "stringProp": "sample string"}
Received:
{"nullProp": {"pact:matcher:type": "null"}, "stringProp": "sample string"}
I'm using
MatchersV3.reify
in the project to strip Matchers from the object and use payload for assertion.However,
MatchersV3.nullValue()
is not processed.Software versions
Issue Checklist
Please confirm the following:
Expected behaviour
MatchersV3.nullValue()
is processed correctly and value is transformed tonull
Actual behaviour
The
reify
method doesn't processMatchersV3.nullValue()
matcherSteps to reproduce
See test - https://github.com/ledniov/pact-js-repro-template/blob/reify-bug/reify.spec.ts
Relevant log files
Github Actions runs - https://github.com/ledniov/pact-js-repro-template/actions/runs/9905937116
The text was updated successfully, but these errors were encountered: