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·29 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·68 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 likeReact
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
Ákos KőművesProakoskm.com·Jan 12, 2024How To Use rerender in React Testing LibraryYou don't write components from scratch every time. Maintaining existing parts of the system that have been working without an issue for years is also part of your job. And as the programming matra says: If it ain't broke, don't fix it! Not touching ...Discuss·554 readsTesting ReactReact
Borislav Grigorovbrslv.hashnode.dev·Jan 11, 2024Introduction to Testing React Components with Vite, Vitest and React Testing LibraryOriginally published on my blog: https://bogr.dev/blog/react-testing-intro/ This article assumes a certain level of agreement between me and you that testing the code we write as developers, is important. And also, that the best way to ensure our cod...Discuss·1 like·128 readsReact
Ákos KőművesProakoskm.com·Dec 21, 2023Your Guide to Testing React ComponentsThis blog post gives you a bird's eye view of the different ways to test your React components and some ideas for converting your tests from Enzyme to React Testing Library. One of my most significant projects this year was moving the Enzyme tests of...Discuss·25 likes·225 readsReact
Ratish Jaindevcon.hashnode.dev·Oct 27, 2023Mastering React Testing Library and Jest: A Comprehensive GuideDefinitions Testing Testing is the process of evaluating a software application or system to identify defects, ensure its functionality meets the desired requirements, and verify that it performs as intended. It helps in maintaining software reliabil...Discuss·10 likes·56 readsTesting
Lyndsi Williamslyndsiwilliams.hashnode.dev·Jul 20, 2023Apache Superset: Testing and Enzyme to RTL conversionSuperset uses Jest and React Testing Library (RTL) to write unit and integration tests. In the past we used Enzyme, but now that we're currently converting all of our class components to functional components, Enzyme cannot support our testing needs....Discuss·31 readsApache Superset