twilio / twilio-voice-react-native

Other
62 stars 22 forks source link

[VBLOCKS-2964] Update `@twilio/voice-errors` to `1.5.0` #365

Closed mhuynh5757 closed 3 weeks ago

mhuynh5757 commented 1 month ago

Submission Checklist

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

Description

This PR updates the errors package version to 1.5.0. It also slightly refactors the error generation to facilitate more thorough testing.

Originally, the tests were not thorough. This PR catches an issue that had slipped by unit tests in previous versions, such that errors added to the scripts/errors.js file (specifically in this case "PayloadSizeExceededError") were marked to be generated, but not actually generated because the dependency error library version did not actually include the error. Now, with these changes, future missing errors will be caught by unit tests properly.

Breakdown

Validation

Additional Notes

N/A