{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/532","labels_url":"https://api.github.com/repos/palantir/tslint/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/532/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/532/events","html_url":"https://github.com/palantir/tslint/issues/532","id":97392511,"number":532,"title":"Expose testing utilities (helper.ts) in a d.ts file and in npm package","user":{"login":"HamletDRC","id":186401,"avatar_url":"https://avatars.githubusercontent.com/u/186401?v=3","gravatar_id":"","url":"https://api.github.com/users/HamletDRC","html_url":"https://github.com/HamletDRC","followers_url":"https://api.github.com/users/HamletDRC/followers","following_url":"https://api.github.com/users/HamletDRC/following{/other_user}","gists_url":"https://api.github.com/users/HamletDRC/gists{/gist_id}","starred_url":"https://api.github.com/users/HamletDRC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HamletDRC/subscriptions","organizations_url":"https://api.github.com/users/HamletDRC/orgs","repos_url":"https://api.github.com/users/HamletDRC/repos","events_url":"https://api.github.com/users/HamletDRC/events{/privacy}","received_events_url":"https://api.github.com/users/HamletDRC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/P2","name":"P2","color":"bbbbbb"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Quality:%20Unit%20Testing","name":"Quality: Unit Testing","color":"fad8c7"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20In%20Discussion","name":"Status: In Discussion","color":"eb6420"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Feature%20Request","name":"Type: Feature Request","color":"FFac4e"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-27T05:55:14Z","updated_at":"2015-08-20T18:07:45Z","closed_at":null,"body":"I have written several custom tslint rules. \r\nI have some ad-hoc testing utilities written to test them, but I would rather just reuse the framework for testing rules that is defined in the tslint source code. It would make it easier for me to test my own rules and also easier to port back to the main source code and submit as pull requests. \r\n\r\nWhat I /think/ I need is: \r\n* the code from helper.ts exposed in a tslint-test.d.ts\r\n* the code from helper.ts (and dependencies) compiled into tslint-test.js\r\n\r\nPlease note: I may not know what I want technically. From a feature standpoint... I just want my tests to look exactly like your tests! "},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/133102974","html_url":"https://github.com/palantir/tslint/issues/532#issuecomment-133102974","issue_url":"https://api.github.com/repos/palantir/tslint/issues/532","id":133102974,"user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T18:07:45Z","updated_at":"2015-08-20T18:07:45Z","body":"+1 for exposing the typings separately. although that makes our build a little more complicated..."}}