Tag: Testing
All the articles with the tag "Testing".
How to test a className with Jest and React testing library
Updated: at 08:20 PMReact Testing Library has no getByClassName. Query by role or text, assert the class with toHaveClass, and use querySelector only when you need a class name.
Test complex DOM structures with React Testing Library
Updated: at 06:24 AMOptimize DOM Testing using React Testing Library for enhanced accuracy, maintainability, and precise UI targeting with specific queries and options
How to Test Props in React with Jest
Updated: at 04:16 PMMock a child React component with Jest, render its props as text, and assert that the parent passed the props you expect.
Mocking GraphQL response for React components using MockedProvider
Updated: at 06:06 PMIn GraphQL-powered React apps, testing component behavior based on GraphQL data is a common scenario. Let's see how to achieve that with MockedProvider.
How to speed up your integration tests
Updated: at 10:08 AMIn this post, I'll show you how we speed up the build process for one of our clients. Now they can run 40% more builds on the same budget.
How to Write Stronger Unit Tests with Jest
Updated: at 10:08 AMWe'll explore why weak tests can leave changes in behavior to land unnoticeably and what we can do to catch these changes early.