var _globals=require("@jest/globals");var _utils=require("../utils");(0,_globals.describe)('mergeWithStableProps',function(){(0,_globals.it)('returns the same reference when objects are referentially equal',function(){var value={a:1,b:'hello'};(0,_globals.expect)((0,_utils.mergeWithStableProps)(value,value)).toBe(value);});(0,_globals.it)('preserves old references for deeply equal values',function(){var nested={x:1};var old={a:nested,b:'hello'};var next={a:{x:1},b:'world'};var result=(0,_utils.mergeWithStableProps)(old,next);(0,_globals.expect)(result['a']).toBe(nested);(0,_globals.expect)(result['b']).toBe('world');});(0,_globals.it)('uses the new value when a property has changed',function(){var old={count:1};var next={count:2};var result=(0,_utils.mergeWithStableProps)(old,next);(0,_globals.expect)(result['count']).toBe(2);});(0,_globals.it)('preserves null values',function(){var old={a:null};var next={a:null};var result=(0,_utils.mergeWithStableProps)(old,next);(0,_globals.expect)(result['a']).toBeNull();});(0,_globals.it)('includes keys present only in newValue',function(){var old={a:1};var next={a:1,b:2};var result=(0,_utils.mergeWithStableProps)(old,next);(0,_globals.expect)(result['b']).toBe(2);});});