Migrating from Jest to Vitest for your React Application

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • app

    ๐Ÿ• Insights into your entire open source ecosystem. (by open-sauced)

  • At OpenSauced, we're using Next.js to build out the main application.

  • vitest

    Next generation testing framework powered by Vite.

  • Are you looking to migrate from Jest to Vitest for your React application? Look no further.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • tinyspy

    ๐Ÿ•ต๐Ÿปโ€โ™‚๏ธ minimal fork of nanospy, with more features

  • Tinyspy built-in for mocking, stubbing, and spies.

  • jsdom

    A JavaScript implementation of various web standards, for use with Node.js

  • If you happen to be using React Testing Library in your project, you'll need to keep the jsdom dev dependency installed.

  • vite

    Next generation frontend tooling. It's fast!

  • import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], test: { include: ["./**/*.test.ts", "./**/*.test.tsx"], globals: true, + environment: "jsdom", }, });

  • happy-dom

    A JavaScript implementation of a web browser without its graphical user interface

  • JSDOM and happy-dom for DOM and browser API mocking

  • jest

    Delightful JavaScript Testing.

  • Are you looking to migrate from Jest to Vitest for your React application? Look no further.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • vitest.

  • Components testing (Vue, React, Svelte, Lit, Vitesse, Marko)

  • jasmine

    Simple JavaScript testing framework for browsers and node.js

  • Vitest makes it effortless to migrate from Jest. It supports the same Jasmine like API.

  • tinypool

    ๐Ÿงต A minimal and tiny Node.js Worker Thread Pool implementation (38KB)

  • Workers multi-threading via Tinypool (a lightweight fork of Piscina)

  • nyc

    the Istanbul command line interface

  • Native code coverage via v8 or istanbul.

  • piscina

    A fast, efficient Node.js Worker Thread Pool implementation

  • Workers multi-threading via Tinypool (a lightweight fork of Piscina)

  • tinybench

    ๐Ÿ”Ž A simple, tiny and lightweight benchmarking library!

  • Benchmarking support with Tinybench

  • expect-type

    Compile-time tests for types. Useful to make sure types don't regress into being overly-permissive as changes go in over time.

  • expect-type for type-level testing

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts