{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1608","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1608/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1608/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1608/events","html_url":"https://github.com/mochajs/mocha/issues/1608","id":62922166,"number":1608,"title":"Add support for nativescript","user":{"login":"gngeorgiev","id":2229435,"avatar_url":"https://avatars.githubusercontent.com/u/2229435?v=3","gravatar_id":"","url":"https://api.github.com/users/gngeorgiev","html_url":"https://github.com/gngeorgiev","followers_url":"https://api.github.com/users/gngeorgiev/followers","following_url":"https://api.github.com/users/gngeorgiev/following{/other_user}","gists_url":"https://api.github.com/users/gngeorgiev/gists{/gist_id}","starred_url":"https://api.github.com/users/gngeorgiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gngeorgiev/subscriptions","organizations_url":"https://api.github.com/users/gngeorgiev/orgs","repos_url":"https://api.github.com/users/gngeorgiev/repos","events_url":"https://api.github.com/users/gngeorgiev/events{/privacy}","received_events_url":"https://api.github.com/users/gngeorgiev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T09:01:28Z","updated_at":"2015-03-19T10:07:15Z","closed_at":null,"body":"https://www.nativescript.org/"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/83473419","html_url":"https://github.com/mochajs/mocha/issues/1608#issuecomment-83473419","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1608","id":83473419,"user":{"login":"dasilvacontin","id":1260830,"avatar_url":"https://avatars.githubusercontent.com/u/1260830?v=3","gravatar_id":"","url":"https://api.github.com/users/dasilvacontin","html_url":"https://github.com/dasilvacontin","followers_url":"https://api.github.com/users/dasilvacontin/followers","following_url":"https://api.github.com/users/dasilvacontin/following{/other_user}","gists_url":"https://api.github.com/users/dasilvacontin/gists{/gist_id}","starred_url":"https://api.github.com/users/dasilvacontin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasilvacontin/subscriptions","organizations_url":"https://api.github.com/users/dasilvacontin/orgs","repos_url":"https://api.github.com/users/dasilvacontin/repos","events_url":"https://api.github.com/users/dasilvacontin/events{/privacy}","received_events_url":"https://api.github.com/users/dasilvacontin/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T10:07:15Z","updated_at":"2015-03-19T10:07:15Z","body":"I'm not familiar with NativeScript, but I've dug around a bit.\r\n\r\nSeems like your .js files are copied to the bundle as is, no compiling or transpiling, and the only thing that changes are the underlying NativeScript libraries that you are using depending on your target platform. Therefore, Mocha is supported out of the box.\r\n\r\nI've found no way of executing the App's code unless when running the app on the target platform. You should anyways test the code on the target devices to ensure everything runs fine.\r\n\r\nYou could `require` and use Mocha programatically. The output would show in your IDE/console when running the App in debug mode, e.g. in Xcode's Console.\r\n\r\nThat's the best solution I've come up with so far. Maybe someone else comes up with a better one, not sure."}}