Const// Primitives
expect(42, 'to satisfy', 42); // passes
expect('hello', 'satisfies', 'hello'); // passes
// Objects (partial matching)
expect({ name: 'John', age: 30 }, 'to satisfy', { name: 'John' }); // passes
expect({ name: 'John' }, 'to be like', { name: 'John', age: 30 }); // fails
// Arrays
expect([1, 2, 3], 'to satisfy', [1, 2, 3]); // passes
// Cross-type satisfaction
expect([1, 2, 3], 'to satisfy', { length: 3 }); // passes
Assertion for testing if a value satisfies a pattern or shape.
Works with any value type: primitives, objects, arrays, or cross-type checks. Uses partial matching semantics - extra properties are allowed in objects.