Shad Mirzaiamshadmirza.hashnode.net·Apr 20, 2021FeaturedA Definitive Guide to React Native Testing LibraryThis guide will walk you through React Native testing using React Native Testing Library. We will cover why we would want to use this library, the benefits, how to write tests, and all sorts of stuff while building an exciting game app. Let's start �...116 likes·4.8K readsReact Native Testing LibraryReact Native
Gifteagiftea.hashnode.net·May 14, 2022A Beginner's Guide to Testing React Applications with React Testing Library and JestAs software developers, it is critical to lower the chances of our program failing by running tests with the end-user in mind and testing your application the same way they would use it. It's impractical to expect an application's components to work ...99 likes·1.7K readsTHW Web Apps
Dhaiwat Pandyadhaiwat.hashnode.net·Jun 21, 2021Develop & test React components in isolationWriting front-end code is easy. But writing reliable front-end code? That's tough. Modern UIs are more complicated than ever. It is critical that you have confidence in your code. Developing and testing your UI components in isolation allows you to a...44 likes·589 readsReact
Elena Marinakielenamarinaki.hashnode.net·Apr 21, 2023FeaturedDevelop and Test a UI component using React with VitestWhat we are going to build In this post, we are going to build an accordion with React and then test it with Vitest. This is how it looks like ⬇️ Repos You can access the code for this example here: CodeSandbox: https://codesandbox.io/p/sandbox/acc...36 likes·247 readsReact
Sachin ChaurasiyaforDeuex Solutions - Tech Blogshahsank3t-1669197542412.hashnode.net·Apr 5, 2023How to Test Custom Hook in ReactJSWhat is a custom hook? 🤔 Custom hooks in ReactJS are reusable pieces of code that encapsulate logic and state management. As developers, we need to ensure that these hooks work as intended and do not have any unintended side effects. This is where t...10 likes·74 readsReact/React NativeReact
bashorun dolapocodedbydolapo.hashnode.net·Mar 22, 2023The Correct Way To Write Tests For Your Smart Contracts, Using HardHat And Ethers-JS: Reentrancy AttacksI was reading up on a few interesting topics the other day, and I found something that fascinated me. Reentrancy Attacks... ...one of the simplest, yet deadliest attacks anyone has ever carried out, or will ever carry out on a decentralized applicati...2 likes·38 readsSmart Contracts
Khairuddin Ni'amkhairuddinniam.hashnode.net·Mar 18, 2023Angular testing using vitest and testing-libraryTo test the angular project using vitest and testing-library, first, install the required libraries on devDependencies - vite - vitest - @testing-library/angular - @testing-library/jest-dom - jsdom - jest-preset-angular - reflect-metadata - @swc/...Angular
Kagisho Taumang Phahlamohlakatauwindcoding.hashnode.net·Mar 9, 2023The discovery of Vitest and Vite.As a developer, I'm always on the lookout for ways to streamline my workflow and make my code more efficient. Recently, I stumbled upon Vite.js, pretty cool! What is Vite.js? Vite.js is a build tool that focuses on speed and a seamless developer expe...vite
Kavitha Rkavitharajagopal.hashnode.net·Mar 2, 2023Understanding Test ManagementTest management is the process of organizing and controlling the testing process. It involves defining the testing strategies, planning, and executing tests, monitoring, and reporting on test progress, and managing defects. Effective test management ...Testing
Bhushan Patilbhushanpatil.hashnode.net·Mar 1, 2023React Hook Testing: Tips, Tricks, and Techniques for Jest and React Testing LibraryThe introduction of React Hooks has caused a significant shift in the way React components are written. This shift has resulted in increased reusability, composability, and improved testability. Nonetheless, testing React Hooks presents its own set o...116 readsReactReact
Alex Buaisciabuaiscia.hashnode.net·Feb 16, 2023Testing the styles of DOM elements with React Testing LibrarySometimes -or often, depending on the case- we need to test some particular style that can change depending on some property. The way this is implemented depends on the library we use for the styling. Supposing that we have some text, inside a compon...26 readsJS & React TipsReact
Prahlad Inalaprahladinala.hashnode.net·Feb 5, 2023What is Selenium?What is Selenium? Selenium is an open-source, portable software testing framework for web applications. It allows for automated testing of web browsers to ensure that applications work as expected. Selenium provides a way to write scripts in a variet...31 readsselenium
Ákos Kőművesakoskm.hashnode.net·Jan 31, 2023How to Write Stronger Unit Tests with JestLet's talk about something I often encounter in Pull Requests: weak unit tests. We'll explore why such tests can lead to unwanted changes landing and what we can do to catch these changes early. I call the unit test weak when the behavior is verified...14 likes·198 readsReact