button-icon

GirişYap

GirişYap
Archi's Academy
    Kurslar
    Kurslar
  • Projeler
    Projeler
  • Archi's Academy

    Alanlar

    #
  • Bloglar
    Bloglar
  • Fiyatlandırma
    Fiyatlandırma
  • İletişim
    İletişim
  • Öğrenci Kulüpleri İçin
    Öğrenci Kulüpleri İçin

BLACK FRIDAY

Tüm Kasım boyunca %85 İndirim

whatsapp
İletişime Geç
Archi's Academy

Navigasyon

  • Fiyatlandırma

Yasal

  • Gizlilik Politikası
  • Hizmet Şartları

İletişim

+1 (217) 200 90 93
Suite No: 8, 400 Emmet Street
Kissimmee, Florida 34741 USA
[email protected]

Copyright © Tech Career Yazılım Danışmanlık A.Ş. 2026

instagramlinkedingithubyoutubexfacebook
visamastercardstripeiyzicoamerican-express
ETBIS
  1. Home›
  2. Blog›
  3. JEST

Automation

Testing

JEST

“Jest is a delightful JavaScript Testing Framework with a focus on simplicity. It works with projects using: Babel, TypeScript, Node, React, Angular, Vue, and more!”
Jest is one of the test frameworks we use, so you may be familiar with it already. This guide explains how to set up Jest in your project, write a unit test, write a snapshot test, and common problems that people encounter when using Jest in React Native.
Jest is an open-source testing framework that has become increasingly popular recently. Initially developed by Facebook, Jest makes it faster and easier to run JavaScript tests by having everything needed to be included in one framework. Jest comes with built-in mocking and assertion libraries, which also run your tests concurrently in parallel, providing faster test execution.
The first thing we'll want to do is install jest-expo, it's a Jest preset that mocks out the native side of the Expo SDK and handles some configuration for you.
To install jest-expo as a development dependency run: yarn add jest-expo --dev or npm i jest-expo --save-dev.
Then we need to add/update package.json to include:
"scripts": 
{  ...  "test": "jest"
},
"jest": 
{  "preset": "jest-expo"
}
Now let's add react-test-renderer to our project:
yarn add react-test-renderer --dev or npm i react-test-renderer --save-dev.
That's it! Now we can start writing the Jest tests!
archis-trainees-blog

Arya Tuba Durgun

Pazartesi, May 10, 2021

İçerikleri gerçek becerilere dönüştürmeye hazır mısın?

Proje tabanlı eğitimle hemen başla, ilk günden itibaren uygulamalı deneyim kazan.

TOC

Table of Content

No sections found