-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Test ES6 code in PhantomJS #3003
Comments
@bajtos anyone else able to take this on? |
Ah, sure, of course. So far, we are using Unfortunately, ES6 is not only about extra APIs, we need to add ES6-to-ES5 transpiler to the mix. I think it should be enough to configure That's a quick intro. I didn't have time to look into this issue, so take my comment with a grain of salt. |
IMO, this is very important to having the loopback repo pass (I think there are windows issues related to phantom too). |
I would prefer to get this done ASAP. We have already spent a lot of time and effort to allow us to use ES6 in our code, I think this is the last missing piece. On the other hand, this is not related to PhantomJS passing/failing in the current code, therefore it's not a critical problem. I have explicitly disabled ES6 syntax in eslint config of loopback. For upstream dependencies like strong-remoting and loopback-datasource-juggler, we are relying on downstream CI builds to detect the situation where an ES6 code would break PhantomJS tests. |
The tests are passing because we are not using any ES6 yet. Here are the instructions how to reproduce the problem we need to fix:
The changes from step 1 and 2 should be included in the patch that will add ES6 transpilation to our Karma tests. |
Done. |
Right now, we use PhantomJS headless browser to run (some of) loopback tests in a browser environment. Unfortunately, PhantomJS does not support ES6 yet - see ariya/phantomjs#14506
To allow us to write ES6 code, we need to add some sort of ES6-to-ES5 transpiler to our Grunt pipeline.
The text was updated successfully, but these errors were encountered: