diff --git a/test/lib/custom-assertions/match.js b/test/lib/custom-assertions/match.js index 27b2f8ef20..a65008e2a6 100644 --- a/test/lib/custom-assertions/match.js +++ b/test/lib/custom-assertions/match.js @@ -60,6 +60,8 @@ module.exports = function match(actual, expected, { assert = require('node:asser } else { assert.equal(actual[key], expected[key]) } + } else { + assert.fail(`Missing ${key} in ${JSON.stringify(actual)}`) } } }