diff --git a/src/v3/matchers.spec.ts b/src/v3/matchers.spec.ts index cbc63fefc..cdd36f246 100644 --- a/src/v3/matchers.spec.ts +++ b/src/v3/matchers.spec.ts @@ -604,6 +604,7 @@ describe('V3 Matchers', () => { more: 'strings', an: ['array'], another: MatchersV3.eachLike('this'), + null: MatchersV3.nullValue(), someObject: { withData: MatchersV3.like(true), withTerm: MatchersV3.regex('this|that', 'this'), @@ -617,6 +618,7 @@ describe('V3 Matchers', () => { more: 'strings', an: ['array'], another: ['this'], + null: null, someObject: { withData: true, withTerm: 'this', diff --git a/src/v3/matchers.ts b/src/v3/matchers.ts index 39a3b53dc..3d6d4ceb0 100644 --- a/src/v3/matchers.ts +++ b/src/v3/matchers.ts @@ -405,6 +405,7 @@ export function includes(value: string): Matcher { export function nullValue(): Matcher { return { 'pact:matcher:type': 'null', + value: null, }; }