{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1286","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1286/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1286/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/1286","id":119704251,"number":1286,"title":"Karma + Babel won't run tests","user":{"login":"N3ll","id":12541122,"avatar_url":"https://avatars.githubusercontent.com/u/12541122?v=3","gravatar_id":"","url":"https://api.github.com/users/N3ll","html_url":"https://github.com/N3ll","followers_url":"https://api.github.com/users/N3ll/followers","following_url":"https://api.github.com/users/N3ll/following{/other_user}","gists_url":"https://api.github.com/users/N3ll/gists{/gist_id}","starred_url":"https://api.github.com/users/N3ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N3ll/subscriptions","organizations_url":"https://api.github.com/users/N3ll/orgs","repos_url":"https://api.github.com/users/N3ll/repos","events_url":"https://api.github.com/users/N3ll/events{/privacy}","received_events_url":"https://api.github.com/users/N3ll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T12:12:56Z","updated_at":"2015-12-01T12:12:56Z","closed_at":null,"body":"_From @stevetayloruk on November 30, 2015 12:7_\n\nWhen 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.\r\n\r\nThe error I'm getting is: \r\n\r\n```\r\n30 11 2015 11:46:42.230:INFO [karma]: Karma v0.13.15 server started at http://localhost:9876/\r\n30 11 2015 11:46:42.236:INFO [launcher]: Starting browser NativeScript Unit Test Runner\r\nSuccessfully prepared plugin nativescript-unit-test-runner for ios.\r\nProject successfully prepared\r\nExecuting after-prepare hook from /Users/stevetaylor/Projects/raise/raise-app/raise/hooks/after-prepare/nativescript-dev-babel.js\r\nCannot read property 'appDestinationDirectoryPath' of undefined\r\n# test ios\r\n```\r\n\r\nand the tests do not run.\r\n\r\nAny ideas?\r\n\r\nThanks\r\n\r\nSteve\r\n\r\n\n\n_Copied from original issue: NativeScript/NativeScript#1182_"}}