{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/12441","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/12441/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/12441/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/12441/events","html_url":"https://github.com/ant-design/ant-design/issues/12441","id":364646032,"node_id":"MDU6SXNzdWUzNjQ2NDYwMzI=","number":12441,"title":"Strange warning message about using `theme=\"filled\"` prop on <Icon/>","user":{"login":"peterbe","id":26739,"node_id":"MDQ6VXNlcjI2NzM5","avatar_url":"https://avatars2.githubusercontent.com/u/26739?v=4","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"yesmeck","id":465125,"node_id":"MDQ6VXNlcjQ2NTEyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/465125?v=4","gravatar_id":"","url":"https://api.github.com/users/yesmeck","html_url":"https://github.com/yesmeck","followers_url":"https://api.github.com/users/yesmeck/followers","following_url":"https://api.github.com/users/yesmeck/following{/other_user}","gists_url":"https://api.github.com/users/yesmeck/gists{/gist_id}","starred_url":"https://api.github.com/users/yesmeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesmeck/subscriptions","organizations_url":"https://api.github.com/users/yesmeck/orgs","repos_url":"https://api.github.com/users/yesmeck/repos","events_url":"https://api.github.com/users/yesmeck/events{/privacy}","received_events_url":"https://api.github.com/users/yesmeck/received_events","type":"User","site_admin":false},"assignees":[{"login":"yesmeck","id":465125,"node_id":"MDQ6VXNlcjQ2NTEyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/465125?v=4","gravatar_id":"","url":"https://api.github.com/users/yesmeck","html_url":"https://github.com/yesmeck","followers_url":"https://api.github.com/users/yesmeck/followers","following_url":"https://api.github.com/users/yesmeck/following{/other_user}","gists_url":"https://api.github.com/users/yesmeck/gists{/gist_id}","starred_url":"https://api.github.com/users/yesmeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesmeck/subscriptions","organizations_url":"https://api.github.com/users/yesmeck/orgs","repos_url":"https://api.github.com/users/yesmeck/repos","events_url":"https://api.github.com/users/yesmeck/events{/privacy}","received_events_url":"https://api.github.com/users/yesmeck/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-09-27T20:44:02Z","updated_at":"2018-09-28T11:33:51Z","closed_at":"2018-09-28T11:33:51Z","author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### Version\r\n3.9.3\r\n\r\n### Environment\r\njest\r\n\r\n### Reproduction link\r\n[https://gist.github.com/peterbe/a3c9c716c4a99b97b4dac5f81915d5a0](https://gist.github.com/peterbe/a3c9c716c4a99b97b4dac5f81915d5a0)\r\n\r\n### Steps to reproduce\r\nI have something like https://gist.github.com/peterbe/a3c9c716c4a99b97b4dac5f81915d5a0 in my code. When rendered in a test run by jest I get this output:\r\n\r\n```\r\n PASS  src/tests/workflows/recipes/components/HistoryItem.test.js\r\n  ● Console\r\n\r\n    console.error node_modules/antd/node_modules/warning/warning.js:36\r\n      Warning: This icon already has a theme 'outlined'. The prop 'theme' filled will be ignored.\r\n```\r\n\r\nI this it's coming from here: https://github.com/ant-design/ant-design/blob/5a0448aa4dadbb5e8563d162a68c064bfd877eb2/components/icon/index.tsx#L121-L128\r\n\r\nI don't know why it only happens in running tests. I supposed because of this https://github.com/BerkeleyTrue/warning/blob/e4806228c076429774878522cafdf9321b7ff71c/warning.js#L17\r\n\r\n### What is expected?\r\nNo warning. If I don't use `theme=\"filled\"` I get an outline icon which is not what I want. \r\n\r\n### What is actually happening?\r\nThe warning adding noise to my tests when running with jest.\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"}}
{"actor":{"display_login":"yesmeck"}}