{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/1780","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/1780/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1780/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/1780/events","html_url":"https://github.com/facebook/jest/issues/1780","id":178811144,"number":1780,"title":"Snapshot with instrumentation code in it??","user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-09-23T08:06:54Z","updated_at":"2016-10-03T14:00:40Z","closed_at":null,"body":"<!-- *Before creating an issue please make sure you are using the latest version of Jest, try re-installing your node_modules folder and run Jest once with `--no-cache` to see if that fixes the problem you are experiencing.* -->\r\n\r\n**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\n[My snapshots](https://github.com/kentcdodds/react-jest-workshop/blob/help/weird-stuff/exercises-final/containers/__snapshots__/CustomerList.test.js.snap#L23-L71) have code and istanbul annotations in them... I can't explain it. I've dug for a few hours... Not sure what's going on. I'm using enzyme + [enzyme-to-json](https://github.com/trayio/enzyme-to-json) by @trayio and it's just the weirdest thing...\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\nYou can clone [this repo](https://github.com/kentcdodds/react-jest-workshop/tree/help/weird-stuff) (note the `help/weird-stuff` branch). Then run `npm run setup` which will install all deps and run the validate script. Then open `exercises-final/containers` and you'll see all the relevant stuff in there.\r\n\r\n**What is the expected behavior?**\r\n\r\nIt should be formatted nicely and not have instrumentation code in the output. Should just be good-looking JSX\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\n```\r\njest version = 15.1.1\r\ntest framework = jasmine2\r\nconfig = {\r\n  \"coverageThreshold\": {\r\n    \"global\": {\r\n      \"branches\": 100,\r\n      \"functions\": 95,\r\n      \"lines\": 100,\r\n      \"statements\": 100\r\n    }\r\n  },\r\n  \"rootDir\": \"/Users/kdodds/Developer/react-jest-workshop\",\r\n  \"name\": \"-Users-kdodds-Developer-react-jest-workshop\",\r\n  \"setupFiles\": [\r\n    \"/Users/kdodds/Developer/react-jest-workshop/node_modules/babel-polyfill/lib/index.js\"\r\n  ],\r\n  \"testRunner\": \"/Users/kdodds/Developer/react-jest-workshop/node_modules/jest-jasmine2/build/index.js\",\r\n  \"scriptPreprocessor\": \"/Users/kdodds/Developer/react-jest-workshop/node_modules/babel-jest/build/index.js\",\r\n  \"usesBabelJest\": true,\r\n  \"preprocessorIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"automock\": false,\r\n  \"bail\": false,\r\n  \"browser\": false,\r\n  \"cacheDirectory\": \"/var/folders/v3/gkts3ng93tl6lm5hy6qp78pm3kfkyl/T/jest\",\r\n  \"colors\": false,\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  \"globals\": {},\r\n  \"haste\": {\r\n    \"providesModuleNodeModules\": []\r\n  },\r\n  \"mocksPattern\": \"__mocks__\",\r\n  \"moduleDirectories\": [\r\n    \"node_modules\"\r\n  ],\r\n  \"moduleFileExtensions\": [\r\n    \"js\",\r\n    \"json\",\r\n    \"node\"\r\n  ],\r\n  \"moduleNameMapper\": {},\r\n  \"modulePathIgnorePatterns\": [],\r\n  \"noStackTrace\": false,\r\n  \"notify\": false,\r\n  \"preset\": null,\r\n  \"resetModules\": false,\r\n  \"testEnvironment\": \"jest-environment-jsdom\",\r\n  \"testPathDirs\": [\r\n    \"/Users/kdodds/Developer/react-jest-workshop\"\r\n  ],\r\n  \"testPathIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"testRegex\": \"(/__tests__/.*|\\\\.(test|spec))\\\\.js$\",\r\n  \"testURL\": \"about:blank\",\r\n  \"timers\": \"real\",\r\n  \"useStderr\": false,\r\n  \"verbose\": null,\r\n  \"watch\": false,\r\n  \"cache\": true,\r\n  \"watchman\": true,\r\n  \"testcheckOptions\": {\r\n    \"times\": 100,\r\n    \"maxSize\": 200\r\n  }\r\n}\r\n```\r\n\r\n- node: 6.5.0\r\n- npm: 3.10.7\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/251113214","html_url":"https://github.com/facebook/jest/issues/1780#issuecomment-251113214","issue_url":"https://api.github.com/repos/facebook/jest/issues/1780","id":251113214,"user":{"login":"bsr203","id":1966521,"avatar_url":"https://avatars.githubusercontent.com/u/1966521?v=3","gravatar_id":"","url":"https://api.github.com/users/bsr203","html_url":"https://github.com/bsr203","followers_url":"https://api.github.com/users/bsr203/followers","following_url":"https://api.github.com/users/bsr203/following{/other_user}","gists_url":"https://api.github.com/users/bsr203/gists{/gist_id}","starred_url":"https://api.github.com/users/bsr203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsr203/subscriptions","organizations_url":"https://api.github.com/users/bsr203/orgs","repos_url":"https://api.github.com/users/bsr203/repos","events_url":"https://api.github.com/users/bsr203/events{/privacy}","received_events_url":"https://api.github.com/users/bsr203/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T14:00:39Z","updated_at":"2016-10-03T14:00:39Z","body":"@kentcdodds  could be different. see comment [above](https://github.com/facebook/jest/issues/1780#issuecomment-251077811) "}}
{"actor":{"display_login":"bsr203"}}