Open in app

Sign In

Write

Sign In

Zafer Ayan
Zafer Ayan

2K Followers

Home

About

May 21

How to setup Jest and React Testing Library in Vite project

React projects made with Create Vite App do not have tests by default, so it is necessary to configure it properly. Let’s take a closer look at these steps. Before you start, you can access the changes here in the link below: https://github.com/ozcanzaferayan/vite-jest-integration/commit/68af95d37849d7cfc6fbd5b005b6e8481896e287 Instructions 1- For little bit complex testing change…

Jest

3 min read

How to setup Jest and React Testing Library in Vite project
How to setup Jest and React Testing Library in Vite project
Jest

3 min read


Apr 1

React’i Neden Bırakıyorum?

Yıllardır sizin de bildiğiniz üzere React ve React Native üzerine içerikler üretiyorum. Ancak son dönemde React ekibinin aldığı kararlar ve React Native özelinde herhangi bir aksiyon alınmaması, React’e ciddi derecede soğumama neden oldu. Şimdi bu kısımları maddeler halinde açıklayacağım: 1. Öğrenim Eğrisi React’e başlamamın temel nedenlerinden biri, library formunda olduğu için uygulama geliştirim…

React

4 min read

React’i Neden Bırakıyorum?
React’i Neden Bırakıyorum?
React

4 min read


Feb 23

Fetch vs Axios. Which one to choose?

The Fetch vs Axios debate has been going on for years and recently it has come up again. I will talk about the disadvantages of using the Fetch API directly instead of using a network library like Axios. First of all, let’s point out the shortcomings of the Fetch API: …

Fetch

6 min read

Fetch vs Axios. Which one to choose?
Fetch vs Axios. Which one to choose?
Fetch

6 min read


Feb 23

Fetch vs Axios. Hangisini tercih etmeli?

İngilizcesi için: https://zaferayan.medium.com/fetch-vs-axios-which-one-to-choose-e76872062820 Fetch ve Axios tartışmaları yıllardır olduğu gibi son zamanlarda da yine ortaya çıktı. Axios gibi bir network kütüphanesi kullanmak yerine Fetch API’ı direkt kullanmanın neden dezavantajlı olduğundan bahsedeceğim. Öncelikle Fetch API’daki eksiklikleri belirtelim: TLDR: Response’u JSON’a çevirmek için ayrıca dönüştürmek gerekiyor

Fetch

5 min read

Fetch vs Axios. Hangisini tercih etmeli?
Fetch vs Axios. Hangisini tercih etmeli?
Fetch

5 min read


Jul 27, 2022

Kod karmaşıklığı giderme teknikleri

Dün #TeknasyonTechMorning yayınında bahsetmek üzere Daniel Sieger’in Your Code Doesn’t Have to Be a Mess isminde blog yazısına denk gelmiştim. Yazıdan aldığım notları da Medium üzerinde de paylaşmaya karar verdim.

Kodlama

3 min read

Kod karmaşıklığı giderme teknikleri
Kod karmaşıklığı giderme teknikleri
Kodlama

3 min read


Jun 17, 2022

React — Haziran 2022 güncellemeleri

Bildiğiniz gibi React ekibi 18 sürümü üzerinde çalışıyor. 15 haziran tarihinde React’in gelmiş olduğu son durumu bir yazı ile güncelleme geçtiler (https://reactjs.org/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.html). Bu yazımda da güncellemeden edindiğim notları sizlerle paylaşacağım. Server Components 2020 Aralıktaki deneysel bir demo yapmışlardı ve ben de bu güncellemeleri devnot kanalında aktarmıştım: https://www.youtube.com/watch?v=X-_0ACXSE9I&t=2726s

React

5 min read

React — Haziran 2022 güncellemeleri
React — Haziran 2022 güncellemeleri
React

5 min read


Published in

Teknasyon Engineering

·Mar 10, 2022

Deep dive into React Native JSI

In November of last year, I spoke about React Native JSI architecture. And in this article, I will talk about the new architecture and how to use it in our projects. But first of all, we need to mention old React Native Architecture. How old React Native Architecture works As some of you know, in React…

React Native

11 min read

Deep dive into React Native JSI
Deep dive into React Native JSI
React Native

11 min read


Mar 6, 2022

How to write a test for network requests in React components?

In React Applications, we may want to test some network requests and sometimes we cannot even reach to server. Therefore we need to mock global.fetch to test network requests properly. Lets say we have a component that renders GitHub user when user clicked the Get user button:

React

3 min read

How to write a test for network requests in React components?
How to write a test for network requests in React components?
React

3 min read


Mar 4, 2022

How to squash last X commits after they have been pushed

Sometimes you push your changes in PR and code owners may want you to squash commits. So how we squash commits that have been pushed? First of all, we need to rebase last commits. For example let’s say we want to squash 3 commits as one: git rebase -i zafer/fix_bug~3…

Git

2 min read

How to squash last X commits after they have been pushed
How to squash last X commits after they have been pushed
Git

2 min read


Mar 2, 2022

How to remove a specified item from the object array in JavaScript?

In JavaScript, there is no obvious method for removing elements from an array. There is a pop() function that exists but it only removes items from the end of an array. The old but gold splice method can remove items from the specified index. We can use it like fruits.splice(itemIndex…

JavaScript

1 min read

How to remove a specified item from the object array in JavaScript?
How to remove a specified item from the object array in JavaScript?
JavaScript

1 min read

Zafer Ayan

Zafer Ayan

2K Followers
Following
  • karboran-9767@crossbell

    karboran-9767@crossbell

  • Faruk Ateş

    Faruk Ateş

  • Muhammed Hilmi Koca

    Muhammed Hilmi Koca

  • Hatice Dağlı

    Hatice Dağlı

  • berkay dağlı

    berkay dağlı

See all (142)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams