{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2118","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2118/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2118/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2118/events","html_url":"https://github.com/facebook/jest/issues/2118","id":190098080,"number":2118,"title":"Code Coverage not at 100% because export defaults of ES6","user":{"login":"albertolive","id":1182864,"avatar_url":"https://avatars.githubusercontent.com/u/1182864?v=3","gravatar_id":"","url":"https://api.github.com/users/albertolive","html_url":"https://github.com/albertolive","followers_url":"https://api.github.com/users/albertolive/followers","following_url":"https://api.github.com/users/albertolive/following{/other_user}","gists_url":"https://api.github.com/users/albertolive/gists{/gist_id}","starred_url":"https://api.github.com/users/albertolive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertolive/subscriptions","organizations_url":"https://api.github.com/users/albertolive/orgs","repos_url":"https://api.github.com/users/albertolive/repos","events_url":"https://api.github.com/users/albertolive/events{/privacy}","received_events_url":"https://api.github.com/users/albertolive/received_events","type":"User","site_admin":false},"labels":[{"id":442782992,"url":"https://api.github.com/repos/facebook/jest/labels/needs%20more%20info","name":"needs more info","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-17T16:38:09Z","updated_at":"2016-12-12T16:06:19Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nBug\r\n\r\n**What is the current behavior?**\r\n\r\nWhen I run `jest --no-cache --coverage` I see in my generated html of istanbul that my tests are not completely at 100%. Mostly in the Statements and Branches tab.\r\n\r\nThe bug it's in the `export default Component`. It saids \"else path not taken\".\r\n\r\nI'm using:\r\n\r\n- React: 15.4.0\r\n- Jest: 17.0.2\r\n- Webpack: 1.12.11\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can `npm install` and `npm test`.**\r\n\r\nRun `jest --no-cache --coverage` and watch the outputted html.\r\n\r\n**What is the expected behavior?**\r\n\r\nSee that the coverage it isn't at 100%.\r\n\r\n**Run Jest again with `--debug` and provide the full configuration it prints. Please mention your node and npm version and operating system.**\r\n\r\nconfig = {\r\n  \"automock\": false,\r\n  \"verbose\": true,\r\n  \"transform\": [\r\n    [\r\n      \"^.+\\\\.js$\",\r\n      \"/Users/albertolive/Cornerjob/webApp/cfg/preprocessor.js\"\r\n    ]\r\n  ],\r\n  \"moduleFileExtensions\": [\r\n    \"js\",\r\n    \"json\"\r\n  ],\r\n  \"moduleNameMapper\": [\r\n    [\r\n      \"^.+\\\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$\",\r\n      \"/Users/albertolive/Cornerjob/webApp/cfg/mocks/fileMock.js\"\r\n    ],\r\n    [\r\n      \"^.+\\\\.(css|scss)$\",\r\n      \"/Users/albertolive/Cornerjob/webApp/cfg/mocks/styleMock.js\"\r\n    ]\r\n  ],\r\n  \"testPathIgnorePatterns\": [\r\n    \"/Users/albertolive/Cornerjob/webApp/(dist|coverage|node_modules)/\",\r\n    \"./src/components/Common\",\r\n    \"./src/components/FormElements\",\r\n    \"./src/components/Offer\",\r\n    \"./src/components/OfferModal\",\r\n    \"./src/components/Dashboard\",\r\n    \"./src/actions\",\r\n    \"./src/stores\",\r\n    \".src/services\",\r\n    \".src/utils\"\r\n  ],\r\n  \"coverageDirectory\": \"/Users/albertolive/Cornerjob/webApp/coverage/jest\",\r\n  \"rootDir\": \"/Users/albertolive/Cornerjob/webApp\",\r\n  \"name\": \"-Users-albertolive-Cornerjob-webApp\",\r\n  \"setupFiles\": [],\r\n  \"testRunner\": \"/Users/albertolive/Cornerjob/webApp/node_modules/jest-jasmine2/build/index.js\",\r\n  \"bail\": false,\r\n  \"browser\": false,\r\n  \"cacheDirectory\": \"/var/folders/yk/yplyrtvd3vs5mxtp2mthjqp40000gn/T/jest\",\r\n  \"coveragePathIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"coverageReporters\": [\r\n    \"json\",\r\n    \"text\",\r\n    \"lcov\",\r\n    \"clover\"\r\n  ],\r\n  \"expand\": false,\r\n  \"globals\": {},\r\n  \"haste\": {\r\n    \"providesModuleNodeModules\": []\r\n  },\r\n  \"mocksPattern\": \"__mocks__\",\r\n  \"moduleDirectories\": [\r\n    \"node_modules\"\r\n  ],\r\n  \"modulePathIgnorePatterns\": [],\r\n  \"noStackTrace\": false,\r\n  \"notify\": false,\r\n  \"preset\": null,\r\n  \"resetMocks\": false,\r\n  \"resetModules\": false,\r\n  \"snapshotSerializers\": [],\r\n  \"testEnvironment\": \"jest-environment-jsdom\",\r\n  \"testPathDirs\": [\r\n    \"/Users/albertolive/Cornerjob/webApp\"\r\n  ],\r\n  \"testRegex\": \"(/__tests__/.*|\\\\.(test|spec))\\\\.jsx?$\",\r\n  \"testURL\": \"about:blank\",\r\n  \"timers\": \"real\",\r\n  \"transformIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"useStderr\": false,\r\n  \"watch\": false,\r\n  \"cache\": false,\r\n  \"watchman\": true\r\n}"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/266470674","html_url":"https://github.com/facebook/jest/issues/2118#issuecomment-266470674","issue_url":"https://api.github.com/repos/facebook/jest/issues/2118","id":266470674,"user":{"login":"albertolive","id":1182864,"avatar_url":"https://avatars.githubusercontent.com/u/1182864?v=3","gravatar_id":"","url":"https://api.github.com/users/albertolive","html_url":"https://github.com/albertolive","followers_url":"https://api.github.com/users/albertolive/followers","following_url":"https://api.github.com/users/albertolive/following{/other_user}","gists_url":"https://api.github.com/users/albertolive/gists{/gist_id}","starred_url":"https://api.github.com/users/albertolive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertolive/subscriptions","organizations_url":"https://api.github.com/users/albertolive/orgs","repos_url":"https://api.github.com/users/albertolive/repos","events_url":"https://api.github.com/users/albertolive/events{/privacy}","received_events_url":"https://api.github.com/users/albertolive/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T16:06:19Z","updated_at":"2016-12-12T16:06:19Z","body":"Hi @thymikee,\r\n\r\nFirst, I run ``jest --no-cache --coverage`` and then, I open the generated file:\r\n\r\n![captura de pantalla 2016-12-12 a les 17 03 51](https://cloud.githubusercontent.com/assets/15685673/21106106/14609308-c08d-11e6-8668-e3e9b4a93869.png)\r\n\r\n\r\nIf you need more info about our configuration, please tell us."}}
{"actor":{"display_login":"albertolive"}}