Category: Mobile Tech
-
Tips: React Native + Jest Unit Test + testing-library
Personal thought on unit test driven development: Debug Tip 1: mocking Firebase functions If your component import Firebase functions like this: Then creating mocking should be in same pattern: I thought this will work: But I got: Debug Tip 2 : mocking store Most of mobile applications that built with RN use store heavily. For…