{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/4708","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/4708/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/4708/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/4708/events","html_url":"https://github.com/facebook/jest/issues/4708","id":265802322,"number":4708,"title":"Running tests with latest OpenLayers 4.4.2","user":{"login":"taviroquai","id":498409,"avatar_url":"https://avatars1.githubusercontent.com/u/498409?v=4","gravatar_id":"","url":"https://api.github.com/users/taviroquai","html_url":"https://github.com/taviroquai","followers_url":"https://api.github.com/users/taviroquai/followers","following_url":"https://api.github.com/users/taviroquai/following{/other_user}","gists_url":"https://api.github.com/users/taviroquai/gists{/gist_id}","starred_url":"https://api.github.com/users/taviroquai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taviroquai/subscriptions","organizations_url":"https://api.github.com/users/taviroquai/orgs","repos_url":"https://api.github.com/users/taviroquai/repos","events_url":"https://api.github.com/users/taviroquai/events{/privacy}","received_events_url":"https://api.github.com/users/taviroquai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-16T15:02:29Z","updated_at":"2017-10-16T15:37:58Z","closed_at":"2017-10-16T15:03:55Z","author_association":"NONE","body":"<!-- \r\nTHIS IS NOT A HELP FORUM. \r\nIf you are experiencing problems with setting up Jest, please make sure to visit our Help page: \r\nhttps://facebook.github.io/jest/help.html\r\n-->\r\n<!-- \r\nBefore creating an issue please check the following:\r\n* you are using the latest version of Jest\r\n* try re-installing your node_modules folder \r\n* run Jest once with `--no-cache` to see if that fixes the problem you are experiencing. \r\n-->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nNot sure where the problem is... jest? babel? react-scripts? ol?\r\nNote that my app runs fine with: npm run start\r\n\r\n**What is the current behavior?**\r\n\r\n    FAIL  src/App.test.js\r\n    Test suite failed to run\r\n\r\n    /home/mafonso/www/testreact/node_modules/ol/index.js:249\r\n    export default _ol_;\r\n    ^^^^^^\r\n    \r\n    SyntaxError: Unexpected token export\r\n      \r\n      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)\r\n      at Object.<anonymous> (src/App.test.js:4:11)**\r\n\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can `yarn install` and `yarn test`.**\r\n\r\n> $ create-react-app testreact\r\n> $ cd testreact\r\n> $ npm install ol\r\n> (just add this line to App.test.js: import Map from 'ol/map')\r\n> $ npm run test\r\n\r\nThis is the package.json:\r\n```\r\n{\r\n  \"name\": \"testreact\",\r\n  \"version\": \"0.1.0\",\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"ol\": \"^4.4.2\",\r\n    \"react\": \"^16.0.0\",\r\n    \"react-dom\": \"^16.0.0\",\r\n    \"react-scripts\": \"1.0.14\"\r\n  },\r\n  \"scripts\": {\r\n    \"start\": \"react-scripts start\",\r\n    \"build\": \"react-scripts build\",\r\n    \"test\": \"react-scripts test --env=jsdom\",\r\n    \"eject\": \"react-scripts eject\"\r\n  }\r\n}\r\n```\r\n\r\n**What is the expected behavior?**\r\nNo error\r\n\r\n**Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.**\r\nDefault react-create-app setup\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/336926455","html_url":"https://github.com/facebook/jest/issues/4708#issuecomment-336926455","issue_url":"https://api.github.com/repos/facebook/jest/issues/4708","id":336926455,"user":{"login":"thymikee","id":5106466,"avatar_url":"https://avatars2.githubusercontent.com/u/5106466?v=4","gravatar_id":"","url":"https://api.github.com/users/thymikee","html_url":"https://github.com/thymikee","followers_url":"https://api.github.com/users/thymikee/followers","following_url":"https://api.github.com/users/thymikee/following{/other_user}","gists_url":"https://api.github.com/users/thymikee/gists{/gist_id}","starred_url":"https://api.github.com/users/thymikee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thymikee/subscriptions","organizations_url":"https://api.github.com/users/thymikee/orgs","repos_url":"https://api.github.com/users/thymikee/repos","events_url":"https://api.github.com/users/thymikee/events{/privacy}","received_events_url":"https://api.github.com/users/thymikee/received_events","type":"User","site_admin":false},"created_at":"2017-10-16T15:37:58Z","updated_at":"2017-10-16T15:37:58Z","author_association":"COLLABORATOR","body":"You shouldn't need to eject just because of some 3rd party lib not transpiling their modules. Either create an issue in CRA (search for similar ones first, maybe they disabled it on purpose) or in the `ol` library to provide ES5-compatible code."}}
{"actor":{"display_login":"thymikee"}}