Suraj Choudharysurajcode.hashnode.dev·Jun 27, 2024Step-by-Step Jest Testing Library for React DevelopersThere are mainly 3 Types of testing that developers do. Unit Testing: Testing individual units or components. Integrated Testing: Testing between two units or component E — 2 — E Testing: Test Start to end complete project. Where do we focus mos...Discuss·10 likesReact
R Chantechcode.hashnode.dev·Jun 19, 2024How to Uniquely Identify an HTML element using React Test Library ?The data-testid attribute is a custom attribute commonly used in testing to uniquely identify elements in the HTML markup. Unlike standard attributes like id, class, or name, which are typically used for styling or JavaScript interactions, the data-t...DiscussJavascriptReact
Oluwafemi SosanyaforDev Toolkitdev-toolkit.com·May 18, 2024Setting Up and Testing a React Application with VitestWelcome to the first part of our detailed series on setting up and testing a React app. Configuring and testing a React app can be daunting, especially when it comes to ensuring that your components, hooks, and utilities work as expected. In this art...Discuss·69 readsTesting a React AppReact
DevJoseManueldevjosemanuel.hashnode.dev·Apr 15, 2024La función act()En el anterior artículo de la serie vimos cómo podíamos testear un custom hook que habíamos desarrollado pero únicamente centrándonos en ver cómo probar el valor que se le asignará a un atributo que definimos dentro del estado del hook. En concreto e...DiscussTestingReact
Nisha neginishanegi.hashnode.dev·Apr 10, 2024Unit Testing With Jest And RTL(React Testing Library)Unit testing is a software testing process in which individual software units or components are tested independently. A "unit" is the smallest testable unit of software, such as a function, method, or class. Unit testing ensures that each software un...Discuss·10 likes·47 readsunit testing
Gautam VajaforCodeParrot 10x Dev10xdev.codeparrot.ai·Mar 22, 2024Test your React Apps with VitestWhat is React Testing? 🤔 React testing refers to the process of verifying the functionality and performance of React components and applications. It involves simulating user interactions, validating component outputs, and ensuring that the applicati...Discuss·30 likes·229 readsenzyme
Lucie Yarishlucieyarish.hashnode.dev·Mar 16, 2024Testing React Apps Built with Vite: Setting up Jest and React Testing LibraryIntroduction to Testing React Applications with Jest and React Testing Library Testing our React applications is essential for ensuring its functionality and reliability. With numerous modern testing frameworks available for React applications, selec...Discuss·76 readsReactReact
Seokjinseokjin.hashnode.dev·Feb 12, 2024리액트 테스팅 - React Testing Library📎 자바스크립트 테스트의 기초 기본적으로 자바스크립트에서 테스트 코드는 어떻게 작성하는지에 대해 알아보자. 만약 인수 두 개의 합을 더하는 함수를 만들었다고 가정해 보자. function sum(a,b) { return a + b } 이 함수에 대한 테스트 코드를 작성한다면 어떻게 작성해야 할까? 테스트 코드를 작성하기에 앞서 테스트 코드가 무엇인지 상기하자. 테스트 코드란 내가 작성한 코드가 내가 코드를 작성했던 당시의 의도와 목적...DiscussJest
Pawan Singhpawxn.hashnode.dev·Feb 1, 2024Comprehensive Guide to Test React Application with React Testing Library and Jest: Step-by-Step TutorialTesting is a crucial aspect of software development, ensuring that your React application works as intended and continues to do so even as you make changes. The combination of React Testing Library and Jest is a popular choice for testing React appli...Discuss·1 like·36 readsReact
Erba Afidotamaerba-writing.hashnode.dev·Jan 23, 2024React Unit Testing using @testing-library/reactExample component code: import {useState} from 'react'; const Text = ({text}) => { const [state, setState]= useState(0); const add = () => { setState(state+1) }; return ( <div> <h1>Hello World</h1> ...Discussgetbytext