Decision Record: Mocking in Jest tests
This is a lightly edited copy of an Architecture Decision Record I wrote at work and share here in public. Date: 2023-09-06 Background We use a lot of mocking in tests written with Jest whenever modules need to leave the JavaScript system barrier. That is, whenever we make network requests, access the location, microphone or […]