{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/873","repository_url":"https://api.github.com/repos/rollup/rollup","labels_url":"https://api.github.com/repos/rollup/rollup/issues/873/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/873/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/873/events","html_url":"https://github.com/rollup/rollup/issues/873","id":172915122,"number":873,"title":"Making a testing for project with many dependencies","user":{"login":"YuryStrozhevsky","id":6128446,"avatar_url":"https://avatars.githubusercontent.com/u/6128446?v=3","gravatar_id":"","url":"https://api.github.com/users/YuryStrozhevsky","html_url":"https://github.com/YuryStrozhevsky","followers_url":"https://api.github.com/users/YuryStrozhevsky/followers","following_url":"https://api.github.com/users/YuryStrozhevsky/following{/other_user}","gists_url":"https://api.github.com/users/YuryStrozhevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/YuryStrozhevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuryStrozhevsky/subscriptions","organizations_url":"https://api.github.com/users/YuryStrozhevsky/orgs","repos_url":"https://api.github.com/users/YuryStrozhevsky/repos","events_url":"https://api.github.com/users/YuryStrozhevsky/events{/privacy}","received_events_url":"https://api.github.com/users/YuryStrozhevsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-08-24T10:15:43Z","updated_at":"2016-08-25T12:09:51Z","closed_at":null,"body":"I am working on a **set** of projects, all using ES6. These are really native ES6 projects, completelly without any transformations to ES5 code. Plus from some of these projects I have dependencies to other my projects (directly to ES6 code).\r\n\r\nWhen I am working with a \"simple\" environment I am using just \"rollup-node-resolve\" and then use Babel (if needed). But seems I have a problem using Mocha with such projects.\r\n\r\nI saw the [rollup-starter-project](https://github.com/rollup/rollup-starter-project), thank you for it. But it works fine until I have ES6 dependencies inside ES6 dependencies. In other words when I am writing ES6 test for mocha and using \"import * as proj1 from proj1\" all works fine if code for \"proj1\" does not use any other ES6 code from other ES6 projects. But all crashes in opposite case - when \"proj1\" has import from \"proj2\", which is ES6 project. Yes, I had been using \"rollup-node-resolve\" and riefy - problem exists.\r\n\r\nI had been trying to create a special \"rollup-register\" (special JS compiler) for Mocha, but seems it is not possible - the Mocha expect code to return result synchroniously, but Rollup works with Promises only.\r\n\r\nSo, please give me an advice what to do in my case. The projects I am working on are really interesting and I would like to use Rollup only + ES6 code only, without making intermediate ES5 code."},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/242363633","html_url":"https://github.com/rollup/rollup/issues/873#issuecomment-242363633","issue_url":"https://api.github.com/repos/rollup/rollup/issues/873","id":242363633,"user":{"login":"YuryStrozhevsky","id":6128446,"avatar_url":"https://avatars.githubusercontent.com/u/6128446?v=3","gravatar_id":"","url":"https://api.github.com/users/YuryStrozhevsky","html_url":"https://github.com/YuryStrozhevsky","followers_url":"https://api.github.com/users/YuryStrozhevsky/followers","following_url":"https://api.github.com/users/YuryStrozhevsky/following{/other_user}","gists_url":"https://api.github.com/users/YuryStrozhevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/YuryStrozhevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuryStrozhevsky/subscriptions","organizations_url":"https://api.github.com/users/YuryStrozhevsky/orgs","repos_url":"https://api.github.com/users/YuryStrozhevsky/repos","events_url":"https://api.github.com/users/YuryStrozhevsky/events{/privacy}","received_events_url":"https://api.github.com/users/YuryStrozhevsky/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T12:09:51Z","updated_at":"2016-08-25T12:09:51Z","body":"@GGAlanSmithee OK, then a small course for you also. Just a one question: does Babel supports NPM modules? Myself I found the answer as \"no\". Thus I came to Rollup. Does Rollup support NPM modules? Yes! So, I **already** found a solution for my problem, as you described it - using Rollup for making bundle which is then could be processed by Babel. But then we come to a real problem - I can not get the bundle \"on the fly\" before Mocha testing. So, my real problem is what I had been describing. If you do not see any possible solutions (expect the \"compiled test\" option) please do not write in the thread."}}
{"actor":{"display_login":"YuryStrozhevsky"}}