module ViewModel::TestHelpers
def serialize_with_references(serializable, serialize_context: ViewModel.new_serialize_context)
def serialize_with_references(serializable, serialize_context: ViewModel.new_serialize_context) data = ViewModel.serialize_to_hash(serializable, serialize_context: serialize_context) references = serialize_context.serialize_references_to_hash return data, references end