{"action":"created","issue":{"url":"https://api.github.com/repos/douglasduteil/isparta/issues/55","labels_url":"https://api.github.com/repos/douglasduteil/isparta/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/douglasduteil/isparta/issues/55/comments","events_url":"https://api.github.com/repos/douglasduteil/isparta/issues/55/events","html_url":"https://github.com/douglasduteil/isparta/issues/55","id":102122502,"number":55,"title":"How to cover JSX / React components?","user":{"login":"screendriver","id":149248,"avatar_url":"https://avatars.githubusercontent.com/u/149248?v=3","gravatar_id":"","url":"https://api.github.com/users/screendriver","html_url":"https://github.com/screendriver","followers_url":"https://api.github.com/users/screendriver/followers","following_url":"https://api.github.com/users/screendriver/following{/other_user}","gists_url":"https://api.github.com/users/screendriver/gists{/gist_id}","starred_url":"https://api.github.com/users/screendriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screendriver/subscriptions","organizations_url":"https://api.github.com/users/screendriver/orgs","repos_url":"https://api.github.com/users/screendriver/repos","events_url":"https://api.github.com/users/screendriver/events{/privacy}","received_events_url":"https://api.github.com/users/screendriver/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-20T11:51:41Z","updated_at":"2015-09-02T01:06:34Z","closed_at":"2015-08-29T14:27:07Z","body":"`isparta` only covers *.js files. How can I enable coverage for *.jsx files? I already added the .jsx extension to my `.istanbul.yml` but unfortunately it's not working.\r\n\r\n**package.json**\r\n\r\n```json\r\n  \"scripts\": {\r\n    \"prepublish\": \"gulp\",\r\n    \"test\": \"mocha --colors --compilers js:babel/register --require test/setup.js test/*.js*\",\r\n    \"posttest\": \"babel-node node_modules/.bin/isparta cover node_modules/.bin/_mocha\"\r\n  },\r\n```\r\n\r\n**.istanbul.yml**\r\n\r\n```yml\r\ninstrumentation:\r\n  root: src\r\n  extensions:\r\n    - .js\r\n    - .jsx\r\n```"},"comment":{"url":"https://api.github.com/repos/douglasduteil/isparta/issues/comments/136907119","html_url":"https://github.com/douglasduteil/isparta/issues/55#issuecomment-136907119","issue_url":"https://api.github.com/repos/douglasduteil/isparta/issues/55","id":136907119,"user":{"login":"yhsiang","id":93509,"avatar_url":"https://avatars.githubusercontent.com/u/93509?v=3","gravatar_id":"","url":"https://api.github.com/users/yhsiang","html_url":"https://github.com/yhsiang","followers_url":"https://api.github.com/users/yhsiang/followers","following_url":"https://api.github.com/users/yhsiang/following{/other_user}","gists_url":"https://api.github.com/users/yhsiang/gists{/gist_id}","starred_url":"https://api.github.com/users/yhsiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhsiang/subscriptions","organizations_url":"https://api.github.com/users/yhsiang/orgs","repos_url":"https://api.github.com/users/yhsiang/repos","events_url":"https://api.github.com/users/yhsiang/events{/privacy}","received_events_url":"https://api.github.com/users/yhsiang/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T01:06:34Z","updated_at":"2015-09-02T01:06:34Z","body":"setup a .istanbul.yml\r\nlike\r\n```\r\ninstrumentation:\r\n  root: src\r\nextensions: ['.js', '.jsx']\r\n```\r\nand add in your isparta config\r\n\r\n```\r\nbabel-node ./node_modules/.bin/isparta --include \"**/*.js\" --include \"**/*.jsx\" cover _mocha --\r\n```"}}