-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Question: Configuring jsdom for Jest #2484
Comments
Currently there's no way to do it. #2460 is related, but there's no guaranty it will be implemented. Although we could add a Related files I can think of:
Closing for now. |
I think it makes more sense to expose |
I'd think anyway we can access |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I tried Jest in January of 2016, and have just picked it up for a new React+Redux project (following the strong recommendation in create-react-app). The developer experience is radically different. Congrats on really amazing progress. 👏
I have a question with regards to interacting with jsdom. I'm currently trying to test a React component. The goal is to pass a mocked function and verify that the function is called when an
img
is loaded. Unfortunately, jsdom does not callonLoad
by default. As shown in the jsdom docs and confirmed by @Sebmaster in #1017 I need to change the default value ofFetchExternalResources
in the jsdom configuration.I'm trying to avoid re-creating a separate jsdom environment, and would like to access/modify/configure the jsdom environment used by Jest. Is there a way to do this? I suspect this may be related to #2460.
Thanks!
The text was updated successfully, but these errors were encountered: