button-icon

Iniciarsesión

Iniciarsesión
Archi's Academy
    Cursos
    Cursos
    #
  • Proyectos
    Proyectos
  • Archi's Academy

    Tracks

    #
  • Blog
    Blog
  • Precios
    Precios
  • Contacto
    Contacto
  • Para clubs universitarios
    Para clubs universitarios

BLACK FRIDAY

85% de descuento durante todo noviembre

whatsapp
Contáctanos
Archi's Academy

Navegación

  • Cursos
  • Proyectos
  • Blog
  • Precios
  • Para clubs universitarios
  • Contacto

Cursos

    Tracks

    • Desarrollo Frontend
    • Desarrollo Backend
    • Control de Calidad (QA)
    • Programación con IA Agentica y LLMs
    • Desarrollo Móvil
    • DevOps

    Legal

    • Política de privacidad
    • Términos de servicio

    Contacto

    +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

    ¿Listo para convertir el conocimiento en habilidades reales?

    Empieza a construir con formación guiada por proyectos y gana experiencia práctica desde el primer día.

    TOC

    Table of Content

    No sections found