{"action":"opened","issue":{"url":"https://api.github.com/repos/colinskow/angular-electron-dream-starter/issues/10","repository_url":"https://api.github.com/repos/colinskow/angular-electron-dream-starter","labels_url":"https://api.github.com/repos/colinskow/angular-electron-dream-starter/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/colinskow/angular-electron-dream-starter/issues/10/comments","events_url":"https://api.github.com/repos/colinskow/angular-electron-dream-starter/issues/10/events","html_url":"https://github.com/colinskow/angular-electron-dream-starter/issues/10","id":248560727,"number":10,"title":"Debugging test cases","user":{"login":"greg9504","id":1952281,"avatar_url":"https://avatars3.githubusercontent.com/u/1952281?v=4","gravatar_id":"","url":"https://api.github.com/users/greg9504","html_url":"https://github.com/greg9504","followers_url":"https://api.github.com/users/greg9504/followers","following_url":"https://api.github.com/users/greg9504/following{/other_user}","gists_url":"https://api.github.com/users/greg9504/gists{/gist_id}","starred_url":"https://api.github.com/users/greg9504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg9504/subscriptions","organizations_url":"https://api.github.com/users/greg9504/orgs","repos_url":"https://api.github.com/users/greg9504/repos","events_url":"https://api.github.com/users/greg9504/events{/privacy}","received_events_url":"https://api.github.com/users/greg9504/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-07T23:39:17Z","updated_at":"2017-08-07T23:39:17Z","closed_at":null,"body":"I'm using 'npm run watch:test' to run the unit tests, which run fine.  However if I open a browser at:\r\n\r\nhttp://localhost:9876/# \r\n\r\nand press the debug button shown on that page, I am unable to debug.  I open the dev tools, go to the sources tab, browse to a file to debug (say home.component.spec.ts), set a breakpoint, then refresh the browser window.  I see an exception in the console:\r\n\r\n> Observable\":1 Uncaught ReferenceError: require is not defined\r\n>     at Object.__webpack_exports__.c (Observable\":1)\r\n>     at __webpack_require__ (bootstrap 221f0e1…:49)\r\n>     at Object.<anonymous> (bootstrap 221f0e1…:147)\r\n>     at __webpack_require__ (bootstrap 221f0e1…:49)\r\n>     at Object.<anonymous> (testing.es5.js:1)\r\n>     at __webpack_require__ (bootstrap 221f0e1…:49)\r\n>     at Object.exports.compose.functions (spec-bundle.js:25)\r\n>     at __webpack_require__ (bootstrap 221f0e1…:49)\r\n>     at Object.defineProperty.value (bootstrap 221f0e1…:147)\r\n>     at bootstrap 221f0e1…:147\r\n>     at EmptyError\":1\r\n> \r\n\r\nIs there a step I'm missing to be able to debug the test scripts? \r\n\r\nIf I perform these same steps using the AngularClass/angular2-webpack-starter project I can debug the test scripts.\r\n\r\nThanks"}}
{"actor":{"display_login":"greg9504"}}