{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/264","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/264/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/264/events","html_url":"https://github.com/airbnb/enzyme/issues/264","id":141280481,"number":264,"title":"Using enzyme with react-rails (asset pipeline)","user":{"login":"ryanwood","id":8504,"avatar_url":"https://avatars.githubusercontent.com/u/8504?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanwood","html_url":"https://github.com/ryanwood","followers_url":"https://api.github.com/users/ryanwood/followers","following_url":"https://api.github.com/users/ryanwood/following{/other_user}","gists_url":"https://api.github.com/users/ryanwood/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanwood/subscriptions","organizations_url":"https://api.github.com/users/ryanwood/orgs","repos_url":"https://api.github.com/users/ryanwood/repos","events_url":"https://api.github.com/users/ryanwood/events{/privacy}","received_events_url":"https://api.github.com/users/ryanwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-16T13:46:18Z","updated_at":"2016-05-26T14:30:58Z","closed_at":null,"body":"This is more of an inquiry. We have a fairly large Rails application and are transitioning much of the front end work to React. This means that we are using the Rails asset pipeline rather than a module system. :( \r\n\r\nI really like the API of enzyme and would love to find a way to use it within my front end testing suite. I'm using [Teaspoon](https://github.com/modeset/teaspoon) with Jasmine underneath. I'm wondering if there is any way to utilize enzyme in a non-module (globals) environment without access to `require`?\r\n\r\nAny help is appreciated. Thanks."},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/221887865","html_url":"https://github.com/airbnb/enzyme/issues/264#issuecomment-221887865","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/264","id":221887865,"user":{"login":"jellymann","id":1171825,"avatar_url":"https://avatars.githubusercontent.com/u/1171825?v=3","gravatar_id":"","url":"https://api.github.com/users/jellymann","html_url":"https://github.com/jellymann","followers_url":"https://api.github.com/users/jellymann/followers","following_url":"https://api.github.com/users/jellymann/following{/other_user}","gists_url":"https://api.github.com/users/jellymann/gists{/gist_id}","starred_url":"https://api.github.com/users/jellymann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jellymann/subscriptions","organizations_url":"https://api.github.com/users/jellymann/orgs","repos_url":"https://api.github.com/users/jellymann/repos","events_url":"https://api.github.com/users/jellymann/events{/privacy}","received_events_url":"https://api.github.com/users/jellymann/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T14:30:58Z","updated_at":"2016-05-26T14:30:58Z","body":"The project I am currently working on does not yet allow for very fancy JS modules to be included in the client-side tests. We would like to move towards a position where we do things right (es6 modules and all that), but it's not realistic to completely rebuild the infrastructure. With that in mind, I would like to be able to use enzyme to test my React components _now_, rather than waiting until the entire infrastructure has been rebuilt using webpack instead of good-old-concat-and-minify."}}
{"actor":{"display_login":"jellymann"}}