Nikos Kleidis's Avatar

Nikos Kleidis

@nikoskleidis

react-native is my jam! Growing avocado trees for a hobby

53
Followers
62
Following
4
Posts
06.02.2024
Joined
Posts Following

Latest posts by Nikos Kleidis @nikoskleidis

Post image Post image

Jest is not always your friend...
Mocking the return value of a function inside a module is tricky and I don't understand why this happens:
- getConsents: mockGetConsents ❌
- getConsents: () => mockGetConsents() ✅
#react-native #jest #testing #react

26.11.2024 13:09 👍 0 🔁 0 💬 0 📌 0

I appreciate it! Thanks!
Happy user of knip here. It just looks great when knip discovers unused code that would otherwise go unnoticed!

15.11.2024 22:11 👍 2 🔁 0 💬 1 📌 0

Great tip! Could you share how you achieve this from your knip config?

15.11.2024 20:25 👍 0 🔁 0 💬 1 📌 0

I really enjoy reactotron lately!

06.11.2024 21:24 👍 1 🔁 0 💬 0 📌 0