{"action":"opened","issue":{"url":"https://api.github.com/repos/skovhus/jest-codemods/issues/94","repository_url":"https://api.github.com/repos/skovhus/jest-codemods","labels_url":"https://api.github.com/repos/skovhus/jest-codemods/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/skovhus/jest-codemods/issues/94/comments","events_url":"https://api.github.com/repos/skovhus/jest-codemods/issues/94/events","html_url":"https://github.com/skovhus/jest-codemods/issues/94","id":273937468,"number":94,"title":"chai-assert conversions fail when using chai default export","user":{"login":"mxmul","id":3022244,"avatar_url":"https://avatars2.githubusercontent.com/u/3022244?v=4","gravatar_id":"","url":"https://api.github.com/users/mxmul","html_url":"https://github.com/mxmul","followers_url":"https://api.github.com/users/mxmul/followers","following_url":"https://api.github.com/users/mxmul/following{/other_user}","gists_url":"https://api.github.com/users/mxmul/gists{/gist_id}","starred_url":"https://api.github.com/users/mxmul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxmul/subscriptions","organizations_url":"https://api.github.com/users/mxmul/orgs","repos_url":"https://api.github.com/users/mxmul/repos","events_url":"https://api.github.com/users/mxmul/events{/privacy}","received_events_url":"https://api.github.com/users/mxmul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-14T20:48:33Z","updated_at":"2017-11-14T20:48:33Z","closed_at":null,"author_association":"NONE","body":"The codemod is not able to transform calls like \"chai.assert.equal(...)\" to Jest assertions. I would expect that either this:\r\n```javascript\r\nimport { assert } from 'chai';\r\n\r\nassert.equal(1, 1);\r\n```\r\n\r\nor this:\r\n```javascript\r\nimport chai from 'chai';\r\n\r\nchai.assert.equal(1, 1);\r\n```\r\n\r\nto be transformed to this:\r\n```\r\nexpect(1).toEqual(1);\r\n```\r\n\r\nbut only the first is actually fixed."}}
{"actor":{"display_login":"mxmul"}}