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

Unable to use with PhantomJS #12

Closed
markgillnz opened this issue Apr 11, 2018 · 4 comments
Closed

Unable to use with PhantomJS #12

markgillnz opened this issue Apr 11, 2018 · 4 comments

Comments

@markgillnz
Copy link

I am using enzyme-react-intl to test react-intl components however it fails when used in combination with karma and PhantomJS 2.1.1

11 04 2018 15:28:58.283:INFO [framework.detect-browsers]: Detecting browsers is disabled. The browsers of the browsers array are used.
11 04 2018 15:29:05.248:INFO [framework.browserify]: bundle built
11 04 2018 15:29:05.297:INFO [karma]: Karma v0.13.22 server started at http://localhost:52917/
11 04 2018 15:29:05.301:INFO [launcher]: Starting browser PhantomJS
11 04 2018 15:29:06.275:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket u9NSMuoySmC8soxnAAAA with id 69589497
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
SyntaxError: Use of reserved word 'let' in strict mode
at /var/folders/dj/s8jy53zn6sg7pvqf24g6pjgsp7527r/T/c41fd46be3a670f19e1228fa90cec6a0.browserify:12166 <- node_modules/enzyme-react-intl/lib/enzyme-react-intl.js:1:0

Can you suggest what I can do to get this working?

@joetidee
Copy link
Owner

Are you using the latest version of enzyme-react-int ?

@markgillnz
Copy link
Author

Yes, I installed it yesterday

@joetidee
Copy link
Owner

Found this - does this help?
chaijs/chai-as-promised#231

@markgillnz
Copy link
Author

I have tried using karma-babel-preprocessor to compile it but to no avail.
I will try with an updated version of karma later to see if it helps though

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

No branches or pull requests

2 participants