-
-
Notifications
You must be signed in to change notification settings - Fork 197
Karma + Babel won't run tests #1286
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
Comments
It's was bug in the Babel hook. Try updating the |
Yes, that has fixed the error. Still can't get them to run though. App is saying No reachable hosts now. Must be a config issue i guess. |
The app runs in the simulator and says "No reachable hosts"? I can't see how this could be possible, as the simulator shares the network interfaces of the host. Can you paste in the contents of |
module.exports = {"port":9876,"ips":["192.168.1.68"],"options":{"debugTransport":false,"debugBrk":false}} |
I’m hitting the same issue. I have the same |
Hello, @tjvantoll, I know this is a long shot, but can you open your If this is the case, you should run I've had a similar problem, so I hope this helps 😄 |
Hey @jasssonpet, The {N} CLI seems to automatically add |
Yes, it does, because the unit test client connects to the Karma server over plain HTTP. Is what you're saying that the flag is set, but the emulator still shows "no reachable hosts"? Have you tried deleting the |
Correct. I have the code below in my <key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
I just tried that and I have the same problem. Here’s exactly what I’m running:
|
It looks like the issue is caused by a newly release version of the socket.io client library referenced by karma. If you manually revert to the old version of the library (change the contents of We will continue the investigation on our side. |
Pull Request issued against socket.io that handles the issue: socketio/socket.io-client#932 |
Another one: socketio/engine.io-client#453 |
🎉 Good news everyone. Socket.io has a new version that has the fix included. Just nuke your |
From @stevetayloruk on November 30, 2015 12:7
When using Babel/ES6 and unit tests (mocha or jasmine - tried both) I'm getting an error when the tests run. The error i think is down to the the babel after-prepare as disabling this gets rid of the error but then the app doesn't run. I'm using "tns test ios --emulator" command.
The error I'm getting is:
and the tests do not run.
Any ideas?
Thanks
Steve
Copied from original issue: NativeScript/NativeScript#1182
The text was updated successfully, but these errors were encountered: