{"action":"opened","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/713","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/713/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/713/events","html_url":"https://github.com/wallabyjs/public/issues/713","id":168088444,"number":713,"title":"isomorphic node / react","user":{"login":"yanivefraim","id":1336186,"avatar_url":"https://avatars.githubusercontent.com/u/1336186?v=3","gravatar_id":"","url":"https://api.github.com/users/yanivefraim","html_url":"https://github.com/yanivefraim","followers_url":"https://api.github.com/users/yanivefraim/followers","following_url":"https://api.github.com/users/yanivefraim/following{/other_user}","gists_url":"https://api.github.com/users/yanivefraim/gists{/gist_id}","starred_url":"https://api.github.com/users/yanivefraim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanivefraim/subscriptions","organizations_url":"https://api.github.com/users/yanivefraim/orgs","repos_url":"https://api.github.com/users/yanivefraim/repos","events_url":"https://api.github.com/users/yanivefraim/events{/privacy}","received_events_url":"https://api.github.com/users/yanivefraim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T12:54:28Z","updated_at":"2016-07-28T12:54:28Z","closed_at":null,"body":"I'm developing an isomorphic application, something similar to [this](https://github.com/kriasoft/react-starter-kit) project. This means that I have both client and server (Javascript) in the same project, side by side (we share same components and tests).\r\n\r\nWe use webpack for bundling client code and client tests (two different bundles) + we have all code in `dist` so server code is not bundled (on dist).\r\n\r\nI was wondering if we can use both client and server using same wallabyjs configuration. \r\nI'm trying two options:\r\n1. Run tests as 'node' env. I wonder if this is possible (for now I'm getting the following error: `Error: It looks like you called `mount()` without a global document being loaded.`. I tried adding JSDOM/JSDOM-global to 'files', with no success so far. Another issue that I might have in this setup is using css imports inside my components. We solved this issue on our server code by using this module: `css-modules-require-hook`. \r\n2. Bundle both server and client using webpack. This is something that we did not do in our build. I think it might work (although I prefer option 1) .\r\n\r\nI would love to hear what you have to say about it + I promise to contribute an example of an isomorphic react app to the examples page (:\r\n\r\nBTW: https://github.com/kriasoft/react-starter-kit/issues/744\r\n\r\n"}}
{"actor":{"display_login":"yanivefraim"}}