← Back to context

Comment by kyrra

2 days ago

Sorry, I meant that was unit testing.

The document also doesn't say there wasn't testing in staging or prod.

> Sorry, I meant that was unit testing.

So do we. If you change the schema it doesn't matter if it's unit testing, you either have a validation stage for all data coming in beforehand to check these assumptions (the way many python people use pydantic on incoming data, for example), and that must be updated for every change, or every unit must be defensive against this sort of thing.