{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1265","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1265/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1265/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1265/events","html_url":"https://github.com/airbnb/enzyme/issues/1265","id":265579924,"node_id":"MDU6SXNzdWUyNjU1Nzk5MjQ=","number":1265,"title":"Where do I put setupTests file","user":{"login":"iiison","id":5260612,"node_id":"MDQ6VXNlcjUyNjA2MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/5260612?v=4","gravatar_id":"","url":"https://api.github.com/users/iiison","html_url":"https://github.com/iiison","followers_url":"https://api.github.com/users/iiison/followers","following_url":"https://api.github.com/users/iiison/following{/other_user}","gists_url":"https://api.github.com/users/iiison/gists{/gist_id}","starred_url":"https://api.github.com/users/iiison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiison/subscriptions","organizations_url":"https://api.github.com/users/iiison/orgs","repos_url":"https://api.github.com/users/iiison/repos","events_url":"https://api.github.com/users/iiison/events{/privacy}","received_events_url":"https://api.github.com/users/iiison/received_events","type":"User","site_admin":false},"labels":[{"id":284995846,"node_id":"MDU6TGFiZWwyODQ5OTU4NDY=","url":"https://api.github.com/repos/airbnb/enzyme/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2017-10-15T15:23:24Z","updated_at":"2018-08-24T18:41:08Z","closed_at":"2018-01-05T05:52:14Z","author_association":"NONE","body":"Hello, I am following [this guid](http://airbnb.io/enzyme/docs/installation/#working-with-react-15) to setup tests in my project(with React-15). I was going through *ES6:(setup)* and I couldn't get where should I put this test file. and how and where to import the testSetup file. I have tried to put it at root level and in the app directory(where all containers and redux logic is written) but none worked. I am using jest with enzyme. and while running tests I am getting this error:\r\n\r\n```bash\r\nEnzyme Internal Error: Enzyme expects an adapter to be configured, but found none. To\r\nconfigure an adapter, you should call `Enzyme.configure({ adapter: new Adapter() })` \r\nbefore using any of Enzyme's top level APIs, where `Adapter` is the adapter \r\ncorresponding to the library currently being tested. For example:\r\n\r\n          import Adapter from 'enzyme-adapter-react-15';\r\n```\r\n\r\nOr do I need to configure adapter every time?"},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/415847219","html_url":"https://github.com/airbnb/enzyme/issues/1265#issuecomment-415847219","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/1265","id":415847219,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTg0NzIxOQ==","user":{"login":"Julian-Jurai","id":27185026,"node_id":"MDQ6VXNlcjI3MTg1MDI2","avatar_url":"https://avatars1.githubusercontent.com/u/27185026?v=4","gravatar_id":"","url":"https://api.github.com/users/Julian-Jurai","html_url":"https://github.com/Julian-Jurai","followers_url":"https://api.github.com/users/Julian-Jurai/followers","following_url":"https://api.github.com/users/Julian-Jurai/following{/other_user}","gists_url":"https://api.github.com/users/Julian-Jurai/gists{/gist_id}","starred_url":"https://api.github.com/users/Julian-Jurai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julian-Jurai/subscriptions","organizations_url":"https://api.github.com/users/Julian-Jurai/orgs","repos_url":"https://api.github.com/users/Julian-Jurai/repos","events_url":"https://api.github.com/users/Julian-Jurai/events{/privacy}","received_events_url":"https://api.github.com/users/Julian-Jurai/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T18:41:08Z","updated_at":"2018-08-24T18:41:08Z","author_association":"NONE","body":"For those like me please pay attention to the file name `\\src\\setupTests.js` its plural!! setupTest**S**"}}
{"actor":{"display_login":"Julian-Jurai"}}