FpartialDeepStrictEqual
Bun

function

assert.default.partialDeepStrictEqual

actual: unknown,
expected: unknown,
message?: string | Error
): void;

Tests for partial deep equality between the actual and expected parameters. "Deep" equality means that the enumerable "own" properties of child objects are recursively evaluated also by the following rules. "Partial" equality means that only properties that exist on the expected parameter are going to be compared.

This method always passes the same test cases as assert.deepStrictEqual(), behaving as a super set of it.

Referenced types

interface Error