Refactor withFirebaseImage HOC to make it testable during unit testing
Description
withFirebaseImage
HOC tries to contact Firebase during unit testing and
it makes unit tests of several components get broken. We need to isolate
withFirebaseImage
HOC by mocking it during unit testing.
The challenge is we need to provide a complete mock of firebase
NodeJS
module that will act as stand-in for the actual Firebase dependency during
unit testing.
Tasks
TBD.
References
- Firebase NodeJS module: https://github.com/firebase/firebase-js-sdk
Related
Once this issue is resolved, #154 - #158 can be testable again.
Edited by Daya Adianto