You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use case: The user accesses my site with a query param in the URL for filling a questionnaire. I have a class in my project which is for the backend communication. This class fetches the correct param from window.location.search and adds it to the request.
I now want to test this class and method, but manipulation of window.location is not so easy with current jsdom versions. According to this issue and comment in jest-repo jestjs/jest#5124 (comment) there is a npm package which does the magic with jsdom.reconfigure.
I tried this so setup in my project, but got the error message from CRA the "testEnvironment" is not yet supported. I can either npm run eject or open an issue, to might support this jest config option.
Is there a reason, why not supporting all jest config options or a way, which I can use the given config? Thanks for your help.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Hey guys,
use case: The user accesses my site with a query param in the URL for filling a questionnaire. I have a class in my project which is for the backend communication. This class fetches the correct param from
window.location.search
and adds it to the request.I now want to test this class and method, but manipulation of window.location is not so easy with current jsdom versions. According to this issue and comment in jest-repo jestjs/jest#5124 (comment) there is a npm package which does the magic with
jsdom.reconfigure
.I tried this so setup in my project, but got the error message from CRA the "testEnvironment" is not yet supported. I can either
npm run eject
or open an issue, to might support this jest config option.Is there a reason, why not supporting all jest config options or a way, which I can use the given config? Thanks for your help.
The text was updated successfully, but these errors were encountered: