-
Notifications
You must be signed in to change notification settings - Fork 408
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
ReferenceError: requestAnimationFrame is not defined #185
Comments
The use of
Thanks. This is being tracked in #168 and should be fixed by #181. I just haven't had time to merge yet. |
requestAnimationFrame is just one issue, I tried running my test suite against all of the
|
If you can post a test repo, I'll try to take a look when I have some time. |
following so I can upgrade to 1.3.0 when this is resolved. Thanks! |
I am seeing this as well using 1.4.0 with Mocha/Chai and |
If someone can provide a test case that would help. Otherwise there's not much I can do here. |
After some further investigation, I'm going to close this out, since it's not an issue with the typeahead library itself. As noted in the original post, jsdom doesn't provide Further discussion: jestjs/jest#1644 |
Version
1.3.0
I'm using mocha / enzyme / jsdom to run tests which incude the
<Typeahead>
and am gettingI tried faking it with
global.requestAnimationFrame = function(cb) { cb(0) }
but looks like there's other issues, the test just hangs and I haven't found the cause yet.I haven't found a version of jsdom which polyfills
requestAnimationFrame
, have you got a test using these packages to work? The previous versions of the package did run correctly.There's also three warnings from this package:
The text was updated successfully, but these errors were encountered: