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
[vue-test-utils]: window is undefined, vue-test-utils needs to be run in a browser environment.
You can run the tests in node using jsdom + jsdom-global.
See https://vue-test-utils.vuejs.org/en/guides/common-tips.html for more details.
For a use case for when it might be important to test vue components in a node environment, please see the issue referenced above.
The text was updated successfully, but these errors were encountered:
Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!
I just posted an issue in the
vue-test-utils-jest-example
repo about this, but I think it needs flagging here also.When setting the jest environment to
node
the following error is thrown:For a use case for when it might be important to test vue components in a
node
environment, please see the issue referenced above.The text was updated successfully, but these errors were encountered: