{"action":"closed","issue":{"url":"https://api.github.com/repos/fuse-box/fuse-test-runner/issues/3","repository_url":"https://api.github.com/repos/fuse-box/fuse-test-runner","labels_url":"https://api.github.com/repos/fuse-box/fuse-test-runner/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/fuse-box/fuse-test-runner/issues/3/comments","events_url":"https://api.github.com/repos/fuse-box/fuse-test-runner/issues/3/events","html_url":"https://github.com/fuse-box/fuse-test-runner/issues/3","id":226506480,"number":3,"title":"Using globals with test","user":{"login":"tomitrescak","id":2682705,"avatar_url":"https://avatars1.githubusercontent.com/u/2682705?v=3","gravatar_id":"","url":"https://api.github.com/users/tomitrescak","html_url":"https://github.com/tomitrescak","followers_url":"https://api.github.com/users/tomitrescak/followers","following_url":"https://api.github.com/users/tomitrescak/following{/other_user}","gists_url":"https://api.github.com/users/tomitrescak/gists{/gist_id}","starred_url":"https://api.github.com/users/tomitrescak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomitrescak/subscriptions","organizations_url":"https://api.github.com/users/tomitrescak/orgs","repos_url":"https://api.github.com/users/tomitrescak/repos","events_url":"https://api.github.com/users/tomitrescak/events{/privacy}","received_events_url":"https://api.github.com/users/tomitrescak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-05-05T08:33:37Z","updated_at":"2017-05-05T22:58:43Z","closed_at":"2017-05-05T22:58:43Z","body":"Hi, I'm trying to use my stubbing plugin with the new bundler. It works well, when I build a running app, but it does not work when bundling tests.\r\n\r\nThis does not work:\r\n\r\n```\r\nfuse.bundle(\"app\")\r\n    .plugin([StubPlugin])\r\n    .globals({ proxyrequire: '*' })\r\n    .test(\"[**/**.test.tsx]\");\r\n```\r\n\r\nError:\r\n\r\n```\r\n(node:6617) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: proxyRequire is not defined\r\n```\r\n\r\nThis works\r\n\r\n```\r\nluisFuse.bundle(\"client\")\r\n    .watch() // watch only client related code\r\n    .hmr()\r\n    .sourceMaps(true)\r\n    .plugin([StubPlugin])\r\n    .globals({ proxyrequire: '*' })\r\n    .instructions(\" !> [client/luis.ts]\");\r\n```\r\n"}}
{"actor":{"display_login":"tomitrescak"}}