button-icon

Entrar

Entrar
Archi's Academy
    Cursos
    Cursos
    #
  • Projetos
    Projetos
  • Archi's Academy

    Trilhas

    #
  • Blog
    Blog
  • Precos
    Precos
  • Contato
    Contato
  • Para clubes universitarios
    Para clubes universitarios

BLACK FRIDAY

85% de desconto durante todo novembro

whatsapp
Entre em contato
Archi's Academy

Navegacao

  • Cursos
  • Projetos
  • Blog
  • Precos
  • Para clubes universitarios
  • Contato

Cursos

    Trilhas

    • Desenvolvimento Frontend
    • Desenvolvimento Backend
    • Garantia de Qualidade (QA)
    • Programacao com IA Agente e LLMs
    • Desenvolvimento Mobile
    • DevOps

    Legal

    • Politica de Privacidade
    • Termos de Servico

    Contato

    +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

    Pronto para transformar conhecimento em habilidades reais?

    Comece a construir com formacao guiada por projetos e ganhe experiencia pratica desde o primeiro dia.

    TOC

    Table of Content

    No sections found