How to mock window object in Jest with deep-rooted methods calledRecently I have some unit tests need to mock window object and implement some methods of it, and it is a deep-rooted object which is hard…Jul 4, 2021Jul 4, 2021
Redux learningI’m learning react-redux through building a shopping website, I wasn’t totally mastering it but I have to write something to clear my…Nov 10, 2019Nov 10, 2019
JS Array shallow copy && JS polling implementation && one of using Mobx pitfallsWell, these should be three separate topics but I just want to do a quick sum-up of what I learned today.Nov 3, 2019Nov 3, 2019