diff --git a/package.json b/package.json index f21d3295747..9ea4fba775b 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "iconv-lite": "^0.4.15", "is-my-json-valid": "^2.15.0", "is-resolvable": "^1.0.0", - "jsdom": "^9.11.0", + "jsdom": "^10.0.0", "json-stable-stringify": "^1.0.1", "lockfile": "^1.0.3", "lodash": "^4.17.4", diff --git a/src/lib/collectors/jsdom/jsdom.ts b/src/lib/collectors/jsdom/jsdom.ts index 33aec4469bd..8e7a4d07530 100644 --- a/src/lib/collectors/jsdom/jsdom.ts +++ b/src/lib/collectors/jsdom/jsdom.ts @@ -22,7 +22,7 @@ import * as path from 'path'; import * as url from 'url'; -import * as jsdom from 'jsdom'; +import * as jsdom from 'jsdom/lib/old-api'; import { debug as d } from '../../utils/debug'; /* eslint-disable no-unused-vars */ diff --git a/tests/lib/utils/location-helpers.ts b/tests/lib/utils/location-helpers.ts index 202c85bcd68..c7d8b91f4b6 100644 --- a/tests/lib/utils/location-helpers.ts +++ b/tests/lib/utils/location-helpers.ts @@ -2,7 +2,7 @@ import * as path from 'path'; import test from 'ava'; -import * as jsdom from 'jsdom'; +import * as jsdom from 'jsdom/lib/old-api'; import * as pify from 'pify'; import { readFile } from '../../../src/lib/utils/misc';