mock-property

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

object-delete-key

Delete keys from all arrays or plain objects, nested within anything, by key or by value or by both, and clean up afterwards. Accepts wildcards.