{"action":"opened","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/628","repository_url":"https://api.github.com/repos/aksonov/react-native-router-flux","labels_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/628/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/628/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/628","id":152792619,"number":628,"title":"tests failing due to non transpiled code in node_modules","user":{"login":"sattaman","id":1196383,"avatar_url":"https://avatars.githubusercontent.com/u/1196383?v=3","gravatar_id":"","url":"https://api.github.com/users/sattaman","html_url":"https://github.com/sattaman","followers_url":"https://api.github.com/users/sattaman/followers","following_url":"https://api.github.com/users/sattaman/following{/other_user}","gists_url":"https://api.github.com/users/sattaman/gists{/gist_id}","starred_url":"https://api.github.com/users/sattaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sattaman/subscriptions","organizations_url":"https://api.github.com/users/sattaman/orgs","repos_url":"https://api.github.com/users/sattaman/repos","events_url":"https://api.github.com/users/sattaman/events{/privacy}","received_events_url":"https://api.github.com/users/sattaman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T14:47:15Z","updated_at":"2016-05-03T14:47:15Z","closed_at":null,"body":"When running tests, any imports of react-native-router-flux are breaking as throwing errors, 'unexpected import' . This is due to node_modules not being transpiled by babel. Looking through other packages in my node_modules, it seems the others are pre-transpiled.\r\n\r\nI am following the code outlined in the [enzyme guide for react native](https://github.com/airbnb/enzyme/blob/master/docs/guides/react-native.md): \r\n\r\n```\r\n\"scripts\": {\r\n    \"start\": \"node node_modules/react-native/local-cli/cli.js start\",\r\n    \"test\": \"mocha --require react-native-mock/mock.js --compilers js:babel-core/register --recursive test/*.js\"\r\n  }\r\n```\r\n\r\nMy own code is being transpiled correctly. [A guide](http://jamesknelson.com/writing-npm-packages-with-es6-using-the-babel-6-cli/) I have found have suggests that libraries should be transpiled, so I thought I'd see what your view was, and if you could recommend a solution. \r\n\r\n"}}