Best of Testing — December 2023
- 1
- 2
freeCodeCamp·2y
How to Test JavaScript Code with Jest
Learn how to test JavaScript code with Jest, a delightful and versatile testing framework developed by Facebook. The article covers the core features of Jest, provides basic examples of writing tests, and introduces a course on freeCodeCamp's YouTube channel for further learning.
- 3
LogRocket·2y
How to test React Hooks
This article provides a practical guide to testing React Hooks using tools such as React Testing Library, Jest, and Enzyme. It covers the importance of testing in the frontend, the benefits of React Hooks, and how to write tests for React Hooks using different testing frameworks. It also compares Jest, React Testing Library, and Enzyme in terms of performance, usability, mocking capabilities, scalability, and maintenance. The article also addresses common pitfalls when testing React Hooks and provides solutions for them, such as mocking API requests and testing side effects. Overall, it serves as a comprehensive resource for developers looking to test React Hooks effectively.
- 4
- 5
- 6
Community Picks·2y
Storybook for React Server Components
Storybook for React Server Components allows for isolated component development and testing on the server. It supports async components using suspense and provides mocking solutions for data access layer and network requests. The current implementation is experimental and has limitations in fidelity and convenience. To use Storybook for RSC, upgrade to Storybook 8.0 alpha and enable the experimentalNextRSC feature.
- 7
Community Picks·2y
You are never taught how to build quality software
Many software projects lack proper quality assurance measures, which can lead to chaotic and stressful release cycles. Computer science education often neglects teaching about QA, even though it is crucial for delivering bug-free software. QA standards are often cut from projects due to budget constraints, resulting in minimal and inadequate testing. To improve the situation, developers need to speak up about the importance of QA and frame it in terms of cost to get management buy-in. Implementing a minimal effective dose of QA measures and focusing on core features can gradually improve software stability. Taking ownership and advocating for QA can benefit both the project and individual developers.
- 8
Code Maze·2y
Using the CLI to Build and Run .NET Applications
This article explores how to use the CLI to build and run .NET applications. It covers creating a new project, running the application, building the application, adding package references, publishing the project, creating a solution, and testing the solution using the CLI.
- 9
LogRocket·2y
Comparing Next.js testing tools and strategies
This post explores various testing strategies and tools available for Next.js applications, comparing their features, benefits, and use cases. It covers Jest and React Testing Library for component, integration, and unit tests, as well as Vitest for lightweight, blazing-fast testing. It also provides code examples and benchmarks for comparison.
- 10
asayer·2y
API Testing Made Easy with Jest: Tips and Tricks for Efficient Testing
This article explores the importance of API testing and provides tips and tricks for efficient testing using the Jest framework. It explains how to set up Jest for API testing, including installation and configuration. The article also covers mocking API requests, integration and end-to-end testing, writing API test cases, handling authentication and authorization, advanced API testing techniques, and best practices. By mastering API testing with Jest, developers can ensure the reliability, security, and performance of their web applications.
- 11
Community Picks·2y
Loco
Loco is a tool that empowers solo developers by providing everything they need for service, data, emails, background jobs, tasks, and CLI. It follows Rails concepts but is adapted to modern Rust development. Loco is optimized for solo developers and can be scaled as needed. It allows developers to build incrementally and includes easy ways to test applications.
- 12
- 13
- 14
- 15