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
Hi,
In our situation we use webpack to bundle the application code into a bundle, and the external packages (Like react) we load them using a script tag (CDN). We would like to mimic that also in our tests.
But when importing enzyme in our tests, it will bundle react and react-dom into the application bundle, even after we specifically mentioned them in our externals section.
To solve this, you have to add this to the externals:
I've updated the issue description to explain the situation in more detail.
The PR is not relevant anymore, a detailed explanation might be needed in the docs.
Here's a repo. to test the issue.
Tests are on the latest react 15.4.1
Hi,
In our situation we use webpack to bundle the application code into a bundle, and the external packages (Like
react
) we load them using ascript
tag (CDN). We would like to mimic that also in our tests.But when importing
enzyme
in our tests, it will bundle react and react-dom into the application bundle, even after we specifically mentioned them in ourexternals
section.To solve this, you have to add this to the externals:
The text was updated successfully, but these errors were encountered: