Advanced testing in React Native with Jest: Components

This post is part of my series on unit testing with Jest in React Native. You can find the introduction here.

In the previous parts, I went through why unit testing is vital and how to test your components using snapshots. While snapshot testing is effective, it fails to test some aspects of the component. Now I would like to talk about more advanced component testing in react native.

read more “Advanced testing in React Native with Jest: Components”

Advanced testing in React Native with Jest: Mocking

This post is part of my series on unit testing with Jest in React Native. You can find the introduction here.

While unit testing your code with Jest, you may come across a time when you have to emulate a certain function. For example, the fetch function that performs HTTP requests, or some hardware-related routines. In such cases, you have to use mocking. Thankfully, jest supports various mocking styles out of the box.

read more “Advanced testing in React Native with Jest: Mocking”

What exactly is GraphQL?

Facebook started developing GraphQL in 2012 and released it in 2015. Since 2018, the Linux Foundation is responsible for the project. GraphQL’s purpose is to provide a query language for data fetching and manipulation. It is not exactly SQL, and not REST, either. It is somewhere in between, allowing developers to query, mutate and organize data in an intuitive and safe way.

read more “What exactly is GraphQL?”

Browser engine diversity or Internet Of Google

If I ask you, what browser you are using, you would probably answer Google Chrome. Indeed, its market share as of 2019 is about 70%. But if we take into consideration all Chrome-like browsers (Opera, Edge, Yandex Browser, etc.) it sums up to about 80%. It sounds perfect for web developers: fewer browser engines means less time spent making your website look consistent across browsers. But is it really?

read more “Browser engine diversity or Internet Of Google”

Everything you need to know about Google Fuchsia

In August of 2016, Google published a project on GitHub codenamed Fuchsia (now moved here). Google made no official announcement, but code inspection suggested this was a brand-new operating system. Why does  Google take on to develop a new OS instead of perfecting Android? What it means for developers and when should we expect it? 

read more “Everything you need to know about Google Fuchsia”