Best of Jest2023

  1. 1
    Article
    Avatar of communityCommunity Picks·3y

    Bun 1.0

    Bun is a fast, all-in-one toolkit for running, building, testing, and debugging JavaScript and TypeScript. Bun's goal is to eliminate slowness and complexity without throwing away everything that's great about JavaScript. Bun is tested against test suites of the most popular Node.js packages on Node.

  2. 2
    Article
    Avatar of builderiobuilder.io·3y

    Bun vs Node.js: Everything you need to know

    Bun v1.0 is a super fast all-in-one toolkit for JavaScript and TypeScript apps. The beauty of Bun lies in its ability to streamline the development process, making it smoother and more efficient than ever. Bun is designed as a faster, leaner, more modern replacement for Node.js.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    How to Write Unit Tests in React

    How to Write Unit Tests in React is a simple way to get started with writing unit tests. Testing involves checking if your code is functioning as it's supposed to by comparing the expected output with the actual output. In general, your tests should cover the following aspects of your code: If a component renders with or without props.

  4. 4
    Article
    Avatar of tshThe Software House·3y

    JavaScript trends in 2023. State of JavaScript report results

    The State of JavaScript report for 2022 provides insights into JavaScript trends for 2023. TypeScript continues to dominate the JS ecosystem. Popular frontend frameworks include React, Angular, Vue.js, and Svelte. Express.js remains dominant among backend frameworks. Jest is the most popular testing tool.

  5. 5
    Article
    Avatar of freecodecampfreeCodeCamp·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.

  6. 6
    Article
    Avatar of logrocketLogRocket·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.

  7. 7
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    The REST API Handbook – How to Build, Test, Consume and Document REST APIs

    The REST API Handbook - How to Build, Test, Consume and Document REST APIs. This tutorial aims to show you an example of how you can fully implement a REST API. We'll cover basic setup and architecture with Node and Express, unit testing with Supertest, and documenting the API using tools such as Swagger.

  8. 8
    Article
    Avatar of asayerasayer·3y

    Playwright vs Puppeteer: which to choose?

    Playwright and Puppeteer are headless browsers designed for end-to-end (E2E) automated testing of web apps. Both are go-to for web automation programmers’ toolkits. Tests ensure that code behaves as expected and catches bugs early on.

  9. 9
    Article
    Avatar of angularAngular·3y

    Angular v16 is here!

    Angular v16 is here! Six months ago, we reached a significant milestone in Angular’s simplicity and developer experience. This post includes lots of content, capturing most of the improvements we made over the past six months. In v16, we’re expecting significant improvements of the INP Core Web Vital metric for apps built with signals.

  10. 10
    Article
    Avatar of bitBits and Pieces·3y

    How to Write Unit Tests with React Testing Library in Next.js

    A tutorial on writing unit tests with React Testing Library in Next.js.

  11. 11
    Article
    Avatar of semaphoreSemaphore·3y

    Writing Unit Tests in Node.js Using Jest

    Unit testing is a software testing method that involves testing individual units or components of a software application in isolation from the rest of the application. It aims to validate that each code unit is working as intended. In this article, you will learn how to write and run high-quality unit tests in Node.js using the popular testing framework Jest.

  12. 12
    Article
    Avatar of itnextITNEXT·3y

    The Essential React Testing Guide: Boost Your Productivity and Confidence (with Jest and RTL)

    The Essential React Testing Guide: Boost Your Productivity and Confidence (with Jest and RTL) Writing tests in React is crucial to ensure that applications work as expected, catching bugs early in the development cycle. Tests also provide confidence in the quality of the codebase, making it easier to maintain and refactor.

  13. 13
    Article
    Avatar of earthlyEarthly·3y

    Using Bazel with TypeScript

    Bazel is an open source project originally created by Google, refined, and tested for years. It works across several languages and platforms, such as Java, Go, and JavaScript, and across operating systems. Bazel automates software builds and tests for tasks like running compilers and linkers to produce executable programs and libraries.

  14. 14
    Article
    Avatar of javacodegeeksJava Code Geeks·3y

    Diving Deeper into React JS: Exploring Advanced Concepts

    React is a popular JavaScript library used for building user interfaces, especially for web applications. It was developed by Facebook and is now maintained as an open-source project. React allows developers to create reusable UI components and efficiently manage the state of those components.

  15. 15
    Article
    Avatar of logrocketLogRocket·3y

    A guide to visual debugging with Vitest Preview

    Vitest Preview allows developers to see the execution of their code in real-time, making it easier to identify and fix problems. Vitest is a new unit testing framework that’s built for speed. If you are new to unit testing with Vitest, we’ve written a guide demonstrating how to test a frontend application.

  16. 16
    Article
    Avatar of logrocketLogRocket·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.