Jest: Mocking a Function That Cannot be Redefined

moved to my personal blog: https://pyk.sh