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-fourteen with all npm packages installed. Try it out:

var jestEnvironmentJsdomFourteen = require("jest-environment-jsdom-fourteen")

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

jest-environment-jsdom-fourteen v1.0.1

JSDOM environment for Jest with JSDOM 14

jest-environment-jsdom-fourteen

Jest by default uses JSDOM 11 to support Node 6. This package uses JSDOM 14, which supports Node >= 8, and does not support Node 6 (and will therefore not be used in Jest any time soon).

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

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

If you would like to use JSDOM 13, see https://github.com/theneva/jest-environment-jsdom-thirteen.

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