1. jest-environment-jsdom-sixteen
> Jest v26 ships with JSDOM@16, so no reason to use this package
jest-environment-jsdom-sixteen
Package: jest-environment-jsdom-sixteen
Created by: SimenB
Last modified: Fri, 06 May 2022 12:26:56 GMT
Version: 2.0.0
License: MIT
Downloads: 522,463
Repository: https://github.com/SimenB/jest-environment-jsdom-sixteen

Install

npm install jest-environment-jsdom-sixteen
yarn add jest-environment-jsdom-sixteen

jest-environment-jsdom-sixteen

Jest v26 ships with JSDOM@16, so no reason to use this package

Jest v25 by default uses JSDOM 15 to support Node 8. This package should also be compatible with Jest 24 and earlier.

This package comes with JSDOM v16, which also enables support for V8 code coverage.

If you need a newer JSDOM than the one that ships with Jest, install this package using npm install --save-dev jest-environment-jsdom-sixteen or yarn add jest-environment-jsdom-sixteen --dev, and edit your Jest config like so:

 {
  "testEnvironment": "jest-environment-jsdom-sixteen"
}

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code