Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jest-environment-jsdom-fifteen

ianschmitz588.6kMIT1.0.2TypeScript support: included

JSDOM environment for Jest with JSDOM 15

readme

jest-environment-jsdom-fifteen

Jest by default uses JSDOM 11 to support Node 6. This package uses JSDOM 15, 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-fifteen or yarn add jest-environment-jsdom-fifteen --dev, and edit your Jest config like so:

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

If you would like to use JSDOM 14, see https://github.com/ianschmitz/jest-environment-jsdom-fourteen.

changelog

1.0.2 (2019-11-29)

:bug: Bug Fix

  • 84662de Revert userAgent bug fix as it unintentionally caused resources to be requested over the network. Fixes #5 (@ianschmitz)

1.0.1 (2019-11-27)

:bug: Bug Fix

  • #4 Support userAgent specified in testEnvironmentOptions (@diegohaz)

1.0.0 (2019-05-25)

v1.0.0 is the initial release of jest-environment-jsdom-fifteen.