Node.js — Node v23.4.0 (Current)
13-Dec-2024 28
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.Introducing experimental assert.partialDeepStrictEqual
Sometimes, when writing test, we want to validate that some specific properties are present, and the mere presence of additional keys are not exactly relevant for that specific test. For this use case, we can now use assert.partialDeepStrictEqual, which should be familiar to those already using assert.deepStrictEqual, with the main difference that it does not require all properties in the actual parameter to be present in the expected parameter.
Node.js — Node v23.4.0 (Current) #js #javascript #Node.js #v23.4.0 #(Current) https://javascript.ba/link/node-js-node-v23-4-0-current