Skip to content
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

Get Jest to work with System.import #1336

Open
mjoyce91 opened this issue Jan 30, 2018 · 1 comment
Open

Get Jest to work with System.import #1336

mjoyce91 opened this issue Jan 30, 2018 · 1 comment
Assignees

Comments

@mjoyce91
Copy link
Collaborator

Jest throws the following error: System.import is not defined when running tests on loadable component using react-loadable. This may be an issue with the code not being transpiled the same way as the application, so perhaps there's a babel plugin that needs to be incorporated, or a global variable is not available to Jest.

@mjoyce91 mjoyce91 self-assigned this Jan 30, 2018
@mjoyce91
Copy link
Collaborator Author

mjoyce91 commented Feb 9, 2018

Apparently this resolves it for some, but I wasn't able to get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants