{"action":"created","issue":{"url":"https://api.github.com/repos/istanbuljs/nyc/issues/497","repository_url":"https://api.github.com/repos/istanbuljs/nyc","labels_url":"https://api.github.com/repos/istanbuljs/nyc/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/istanbuljs/nyc/issues/497/comments","events_url":"https://api.github.com/repos/istanbuljs/nyc/issues/497/events","html_url":"https://github.com/istanbuljs/nyc/issues/497","id":201646252,"number":497,"title":"Question: How to coverage Typescript using Tape","user":{"login":"kevincaradant","id":6093175,"avatar_url":"https://avatars0.githubusercontent.com/u/6093175?v=4","gravatar_id":"","url":"https://api.github.com/users/kevincaradant","html_url":"https://github.com/kevincaradant","followers_url":"https://api.github.com/users/kevincaradant/followers","following_url":"https://api.github.com/users/kevincaradant/following{/other_user}","gists_url":"https://api.github.com/users/kevincaradant/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincaradant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincaradant/subscriptions","organizations_url":"https://api.github.com/users/kevincaradant/orgs","repos_url":"https://api.github.com/users/kevincaradant/repos","events_url":"https://api.github.com/users/kevincaradant/events{/privacy}","received_events_url":"https://api.github.com/users/kevincaradant/received_events","type":"User","site_admin":false},"labels":[{"id":209354847,"url":"https://api.github.com/repos/istanbuljs/nyc/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":{"login":"xdissent","id":99367,"avatar_url":"https://avatars2.githubusercontent.com/u/99367?v=4","gravatar_id":"","url":"https://api.github.com/users/xdissent","html_url":"https://github.com/xdissent","followers_url":"https://api.github.com/users/xdissent/followers","following_url":"https://api.github.com/users/xdissent/following{/other_user}","gists_url":"https://api.github.com/users/xdissent/gists{/gist_id}","starred_url":"https://api.github.com/users/xdissent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdissent/subscriptions","organizations_url":"https://api.github.com/users/xdissent/orgs","repos_url":"https://api.github.com/users/xdissent/repos","events_url":"https://api.github.com/users/xdissent/events{/privacy}","received_events_url":"https://api.github.com/users/xdissent/received_events","type":"User","site_admin":false},"assignees":[{"login":"xdissent","id":99367,"avatar_url":"https://avatars2.githubusercontent.com/u/99367?v=4","gravatar_id":"","url":"https://api.github.com/users/xdissent","html_url":"https://github.com/xdissent","followers_url":"https://api.github.com/users/xdissent/followers","following_url":"https://api.github.com/users/xdissent/following{/other_user}","gists_url":"https://api.github.com/users/xdissent/gists{/gist_id}","starred_url":"https://api.github.com/users/xdissent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdissent/subscriptions","organizations_url":"https://api.github.com/users/xdissent/orgs","repos_url":"https://api.github.com/users/xdissent/repos","events_url":"https://api.github.com/users/xdissent/events{/privacy}","received_events_url":"https://api.github.com/users/xdissent/received_events","type":"User","site_admin":false},{"login":"JaKXz","id":2642545,"avatar_url":"https://avatars1.githubusercontent.com/u/2642545?v=4","gravatar_id":"","url":"https://api.github.com/users/JaKXz","html_url":"https://github.com/JaKXz","followers_url":"https://api.github.com/users/JaKXz/followers","following_url":"https://api.github.com/users/JaKXz/following{/other_user}","gists_url":"https://api.github.com/users/JaKXz/gists{/gist_id}","starred_url":"https://api.github.com/users/JaKXz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaKXz/subscriptions","organizations_url":"https://api.github.com/users/JaKXz/orgs","repos_url":"https://api.github.com/users/JaKXz/repos","events_url":"https://api.github.com/users/JaKXz/events{/privacy}","received_events_url":"https://api.github.com/users/JaKXz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2017-01-18T17:52:20Z","updated_at":"2018-03-20T09:39:06Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI'm a little bit lost with all the libraries between karma, mocha etc\r\n\r\nI decided to use Tape.\r\n\r\nThis is my scripts in the package.json:\r\n```\r\n\"scripts\": {\r\n        \"start\": \"npm run build\",\r\n        \"clean\": \"rimraf bin && rimraf coverage\",\r\n        \"lint\": \"tslint './src/**/*.ts' \",\r\n        \"check\": \"npm run lint -s && dependency-check ./package.json\",\r\n        \"pretest\": \"tsc\",\r\n        \"test\": \"tape bin/tests/**/*.spec.js | tspec\",\r\n        \"test:watch\": \"onchange \\\"tests/**/*.ts\\\" \\\"src/**/*.ts\\\" -i -p -- npm run test\",\r\n        \"compile\": \"tsc\",\r\n        \"compile:watch\": \"onchange \\\"src/**/*.ts\\\" -i -p -- npm run compile\",\r\n        \"build\": \"npm run compile\",\r\n        \"postbuild\": \"npm run check -s && npm run test -s\",\r\n        \"coverage\": \"nyc npm run test\",\r\n        \"coveralls\": \"npm run coverage -s && coveralls < coverage/lcov.info\",\r\n        \"postcoveralls\": \"rimraf ./coverage\",\r\n        \"prepublish\": \"npm run build -s\",\r\n        \"deploy\": \"git pull --rebase origin master && git push origin master\",\r\n        \"patch\": \"npm version patch && npm publish\",\r\n        \"minor\": \"npm version minor && npm publish\",\r\n        \"major\": \"npm version major && npm publish\",\r\n        \"postpublish\": \"git push origin master --follow-tags\",\r\n        \"autocl\": \"auto-changelog\"\r\n    },\r\n```\r\n\r\nMy .nyc file:\r\n```\r\n{\r\n  \"include\": [\r\n    \"src/**/*.ts\"\r\n  ],\r\n  \"exclude\": [\r\n    \"tests/**/*.spec.js\",\r\n    \"bin/**/*.spec.js\",\r\n    \"bin/**/*.map\"\r\n  ],\r\n  \"reporter\": [\r\n    \"lcov\",\r\n    \"text-summary\"\r\n  ],\r\n  \"extension\": [\r\n    \".ts\"\r\n  ],\r\n  \"require\": [\r\n      \"ts-node/register\"\r\n   ],\r\n  \"all\": true,\r\n  \"check-coverage\": true\r\n}\r\n```\r\n\r\n**Can I coverage cleanly using my way with npm run test and npm run coverage ?**\r\nOr what I have to do ? \r\n\r\nThank you in advance, sorry if it's trivial.\r\n\r\n`npm run coverage` comand:\r\nThis is my output:\r\n![image](https://cloud.githubusercontent.com/assets/6093175/22076461/718c00ea-ddb0-11e6-88ba-1c14dce9a338.png)\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/istanbuljs/nyc/issues/comments/374533169","html_url":"https://github.com/istanbuljs/nyc/issues/497#issuecomment-374533169","issue_url":"https://api.github.com/repos/istanbuljs/nyc/issues/497","id":374533169,"user":{"login":"zixia","id":1361891,"avatar_url":"https://avatars3.githubusercontent.com/u/1361891?v=4","gravatar_id":"","url":"https://api.github.com/users/zixia","html_url":"https://github.com/zixia","followers_url":"https://api.github.com/users/zixia/followers","following_url":"https://api.github.com/users/zixia/following{/other_user}","gists_url":"https://api.github.com/users/zixia/gists{/gist_id}","starred_url":"https://api.github.com/users/zixia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixia/subscriptions","organizations_url":"https://api.github.com/users/zixia/orgs","repos_url":"https://api.github.com/users/zixia/repos","events_url":"https://api.github.com/users/zixia/events{/privacy}","received_events_url":"https://api.github.com/users/zixia/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T09:39:06Z","updated_at":"2018-03-20T09:39:06Z","author_association":"NONE","body":"It seems `nyc` will not work with `tape` right now?"}}
{"actor":{"display_login":"zixia"}}