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
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
The weirdest part is, that opening the above mentioned file:///Users/aljoscha/rails/jovoto/tmp/jasmine/runner.html?spec= in a browser does run the spec successfully.
What could be the reason for this / how can we debug this?
The text was updated successfully, but these errors were encountered:
I've seen this a few times in apps for work. In my experience, it's because there is unsupported ES6/ES2015 JS code in the tests (I'd check the app code too though)
I'd do a quick hunt/grep for fat arrow functions =>
Or template strings! Or const/let.
Etc.
EDIT: not sure why phantomjs chokes on the modern JS but that explains why running it e.g. Chrome works fine.
Yes, phantomjs is deprecated/archived at this point and will never get various modern ES features, so unless code is compiled down to ES5 or lower, it'll choke. Headless mode for Chrome (and hopefully other browsers) are the future.
When we go to
/specs
on our local server, we getbut when we run
RAILS_ENV=test bundle exec rake spec:javascript
, it looks like there are no specs:The weirdest part is, that opening the above mentioned
file:///Users/aljoscha/rails/jovoto/tmp/jasmine/runner.html?spec=
in a browser does run the spec successfully.What could be the reason for this / how can we debug this?
The text was updated successfully, but these errors were encountered: