4 ms·
My recommendation is to invest in testing now while it’s easy. You can mock the incoming events and use something like moto for service mocks. That catches du
by coredog64 4y ago
My recommendation is to invest in testing now while it’s easy. You can mock the incoming events and use something like moto for service mocks. That catches dumb mistakes sooner.
Also, don’t put any logic in the handler itself unless it’s extremely trivial.
- tra3 4y agoSound advice, but that ship has sailed. This is an existing lambda that I'm refactoring so I need to be able to "go through the front door", as it were. Once I become more familiar with the code, I'll be able to test individual pieces are you're recommending.