-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport changes from upstream #2
Conversation
@@ -1,37 +0,0 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not relevant since we aren't running tests here.
const mock = require('jest-mock'); | ||
const {FakeTimers, installCommonGlobals} = require('jest-util'); | ||
const { JSDOM } = require('jsdom'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upstream hoisted these
|
||
this.document = new JSDOM(/* markup */ undefined, { | ||
this.document = new JSDOM('<!DOCTYPE html>', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from upstream
@@ -24,11 +23,21 @@ class JSDOMEnvironment { | |||
global.Error.stackTraceLimit = 100; | |||
installCommonGlobals(global, config.globals); | |||
|
|||
if (!global.requestAnimationFrame) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fix to #1
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* This source code is licensed under the MIT license found in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upstream was relicensed
Let me know what you think. Technically this package is more like |
Any chance of cutting a release here? |
Closes #1