Sinon Error: Attempted to wrap undefined property ‘XYZ as function

I ran into a fun little error recently when working on a ReactJs application.  In my application I was using SinonJs to setup some spies on a method, I wanted to capture the input arguments for verification.  However, when I ran my test I received the following error. Attempted to wrap undefined property handlOnAccountFilter as …

Continue reading Sinon Error: Attempted to wrap undefined property ‘XYZ as function

Using Manual Mocks to test the AWS SDK with Jest

Anytime you build Node applications it is highly suggested that your cover your code with tests.  When your code interacts with 3rd party API's such as AWS you will most certainly want to mock/stub your calls in order to prevent external calls (if you actually want to do external calls, these are called integration tests …

Continue reading Using Manual Mocks to test the AWS SDK with Jest