In cases where native addons were first required after mockery was
enabled, and then this happened again later, you'd get a 'did not
self-register' error. This has been corrected by populating the
originalCache with native addons that have been required since mockery
was enabled.
In cases where native addons were first required after mockery was enabled, and then this happened again later, you'd get a 'did not self-register' error. This has been corrected by populating the originalCache with native addons that have been required since mockery was enabled.
Test case courtesy of @petey.