{"action":"created","issue":{"url":"https://api.github.com/repos/avajs/ava/issues/963","repository_url":"https://api.github.com/repos/avajs/ava","labels_url":"https://api.github.com/repos/avajs/ava/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/avajs/ava/issues/963/comments","events_url":"https://api.github.com/repos/avajs/ava/issues/963/events","html_url":"https://github.com/avajs/ava/issues/963","id":165461640,"number":963,"title":"ReferenceError: $ is not defined","user":{"login":"LiTiang","id":13466918,"avatar_url":"https://avatars.githubusercontent.com/u/13466918?v=3","gravatar_id":"","url":"https://api.github.com/users/LiTiang","html_url":"https://github.com/LiTiang","followers_url":"https://api.github.com/users/LiTiang/followers","following_url":"https://api.github.com/users/LiTiang/following{/other_user}","gists_url":"https://api.github.com/users/LiTiang/gists{/gist_id}","starred_url":"https://api.github.com/users/LiTiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiTiang/subscriptions","organizations_url":"https://api.github.com/users/LiTiang/orgs","repos_url":"https://api.github.com/users/LiTiang/repos","events_url":"https://api.github.com/users/LiTiang/events{/privacy}","received_events_url":"https://api.github.com/users/LiTiang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T02:17:38Z","updated_at":"2016-07-14T02:34:23Z","closed_at":null,"body":"How can i use _AVA_ with _jQuery_ ? \r\n--------------------------------\r\nIn my case, \r\ni want to test a function which is in a file called **app.ts** (typescript file)\r\n \r\nand i use `$.ajax` (_jQuery_ API) in that function,\r\n\r\nso _AVA_ will want to ask me : what is the `$` meaning ?????\r\n\r\nNote that, i want to keep unit test simple, clear, \r\n\r\ni use _jQuery_, but it is not meaning i also want to test _DOM_\r\n\r\nNOW i just want to let _jQuery_ work in _AVA_\r\n\r\nHow can do that ? "},"comment":{"url":"https://api.github.com/repos/avajs/ava/issues/comments/232541154","html_url":"https://github.com/avajs/ava/issues/963#issuecomment-232541154","issue_url":"https://api.github.com/repos/avajs/ava/issues/963","id":232541154,"user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T02:34:23Z","updated_at":"2016-07-14T02:34:23Z","body":"We don't have direct browser support yet.\r\n\r\nThere is a recipe for mocking the DOM [here](https://github.com/avajs/ava/blob/master/docs/recipes/browser-testing.md). Some preliminary work on a browser solution via `karma` (https://github.com/avajs/ava/pull/942), and work on a full standalone browser test runner (https://github.com/avajs/ava/pull/887)."}}
{"actor":{"display_login":"jamestalmage"}}