|
|
|
|
|
by surfer7837
1710 days ago
|
|
We use Typescript and jest for the mocks. Probably about 10%, they’re very simple mocks, all they do is return success and in a few unit tests we make them return failure and then test how our app responds. I can’t really say if it pays off but it has caught some issues, would like to expand them more and implement more logic in then to check arguments etc but haven’t been able to yet. This article is similar to what we’ve done https://dev.to/elthrasher/mocking-aws-with-jest-and-typescri... We also have a pipeline that does e2 work tests and canary releases to hopefully limit the blast radius. If we encounter >10 errors in a 1 minute period we roll back and the team are alerted |
|