-
Notifications
You must be signed in to change notification settings - Fork 470
when using waitForDomChange
on chrome 70 : setImmediate
is not defined
#184
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
Comments
Very strange - checking the console for this page (github): https://caniuse.com/#search=setImmediate
|
yeah it is used in only 5% of the browsers... I mocked it as you suggested, but that would be much better replaced at the source. What do you think? It is only used in two places in the code, for I bet this has not appeared so far because nobody used the library in a real browser, like I do, so there are all sorts of discrepancies appearing vs. jsdom and the copycats. |
Yes, it should be replaced in the library. Care to make a PR? |
eer how do I do that? ok, I just have to create a branch I see. Will do that tomorrow first thing |
Hi @brucou 👋 We're here to help you! Start here: http://makeapullrequest.com Let us know if you need help! |
amazing, looking forward to reading it. I always wondered how that works. |
Are you still interested in making this contribution? |
xmas and new year\s eve got in the way. Still have a tough week. If there is no rush, let a week pass and if I haven't done anything about it by then, then go ahead and do the change. Would that work? |
Yep! No worries 😁 |
one question : there is a |
That's a great point @brucou. I'm not sure. I think it'd probably be cool to have a test or two that run in a real browser (using Karma), but I think I'd rather use mocha for two reasons:
I don't think it's absolutely necessary to have tests that run in a real browser, but if you really would like to do this then you're welcome to do so :) |
I used mocha in the past, I am cool with it but I have no appetite to
learn karma and the associated config though.
PR done.
…On 1/4/19, Kent C. Dodds ***@***.***> wrote:
That's a great point @brucou. I'm not sure. I think it'd probably be cool to
have a test or two that run in a real browser (using Karma), but I think I'd
rather use mocha for two reasons:
1. I'm personally more familiar with mocha
2. mocha is a LOT more widely used than Qunit
I don't think it's absolutely necessary to have tests that run in a real
browser, but if you really would like to do this then you're welcome to do
so :)
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#184 (comment)
--
---
|
Fixed! Thanks! |
🎉 This issue has been resolved in version 3.16.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Forgot to thank you for the support Kent and Alex in making that pull request. That was really appreciated! and the learning material is awesome. |
Awesome! Congrats on the PR @brucou! 👍 |
Uh oh!
There was an error while loading. Please reload this page.
dom-testing-library
version:3.16.1
react
version:not using react
node
version:v8.2.0
npm
(oryarn
) version:v5.3.0
Relevant code or config:
What you did:
I ran tests in the browser with QUnit and dom-testing-library.
I tried to use the
waitForDomChange
API.What happened:
Reproduction:
can't reproduce in codesandbox. When I try to
import {waitForDomChange} from "dom-testing-library"
:Problem description:
That code from the library use a function which is not defined in chrome :
The text was updated successfully, but these errors were encountered: