Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jest-environment-jsdom-sixteen with all npm packages installed. Try it out:

var jestEnvironmentJsdomSixteen = require("jest-environment-jsdom-sixteen")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jest-environment-jsdom-sixteen v1.0.3

jest-environment-jsdom-sixteen

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"
}
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free