{"action":"created","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/725","repository_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/725/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/725/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/725/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/725","id":161940677,"number":725,"title":"Strange behaviour running tests with karma --auto-watch","user":{"login":"borntorun","id":820692,"avatar_url":"https://avatars.githubusercontent.com/u/820692?v=3","gravatar_id":"","url":"https://api.github.com/users/borntorun","html_url":"https://github.com/borntorun","followers_url":"https://api.github.com/users/borntorun/followers","following_url":"https://api.github.com/users/borntorun/following{/other_user}","gists_url":"https://api.github.com/users/borntorun/gists{/gist_id}","starred_url":"https://api.github.com/users/borntorun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borntorun/subscriptions","organizations_url":"https://api.github.com/users/borntorun/orgs","repos_url":"https://api.github.com/users/borntorun/repos","events_url":"https://api.github.com/users/borntorun/events{/privacy}","received_events_url":"https://api.github.com/users/borntorun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-23T14:44:02Z","updated_at":"2016-06-23T23:56:17Z","closed_at":null,"body":"**Note: for support questions, please use one of these channels:** [Chat: AngularClass.slack](http://angularclass.com/member-join/) or [Twitter: @AngularClass](https://twitter.com/AngularClass)\r\n\r\n* **I'm submitting a ...**\r\n[x] bug report\r\n[ ] feature request\r\n[ ] question about the decisions made in the repository\r\n\r\n* **Do you want to request a *feature* or report a *bug*?**\r\nReport a possible bug.\r\n\r\n\r\n* **What is the current behavior?**\r\nRunning tests with karma auto-watch active (npm run watch:test) does not always trigger the correct results, as it seems something is not fetching the correct last version of the code.\r\n\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** \r\n\r\nSteps:\r\n\r\n- clone the project\r\n- npm install\r\n- npm run watch:test\r\n- - the test are sucessfull\r\n- change src/app.component.ts line 58 ```url = 'https://twitter.com/AngularClass';``` to ```url = 'https://twitter.com/AngularClassXXXX'```\r\n- the tests are **not sucessfull, which is correct**\r\n- undo the change made on src/app.component.ts line 58\r\n- the tests are **not sucessfull, which is incorrect**\r\n\r\nSo the **first change in code** after karma starts is always triggered, then the strange behaviour happens (cant find a pattern)\r\n- subsequent changes are not trigger\r\n- sometimes after a change in code, to trigger the correct behaviour I need to change a second file \r\n\r\nSeems something about karma-webpack-webpack-middleware is caching the old code or not syncing correctly.\r\n\r\n* **What is the expected behavior?**\r\nEvery last change in code reflected in the environment tests that are running with karma watch\r\n\r\n* **Please tell us about your environment:**\r\n\r\n- I used the last version of the repo (as today) \r\n- Browser: [ PhantomJS 2..0.1 | Chrome 51.0.2704.63 ]\r\n"},"comment":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/comments/228220003","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/725#issuecomment-228220003","issue_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/725","id":228220003,"user":{"login":"abdulhaq-e","id":2532125,"avatar_url":"https://avatars.githubusercontent.com/u/2532125?v=3","gravatar_id":"","url":"https://api.github.com/users/abdulhaq-e","html_url":"https://github.com/abdulhaq-e","followers_url":"https://api.github.com/users/abdulhaq-e/followers","following_url":"https://api.github.com/users/abdulhaq-e/following{/other_user}","gists_url":"https://api.github.com/users/abdulhaq-e/gists{/gist_id}","starred_url":"https://api.github.com/users/abdulhaq-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdulhaq-e/subscriptions","organizations_url":"https://api.github.com/users/abdulhaq-e/orgs","repos_url":"https://api.github.com/users/abdulhaq-e/repos","events_url":"https://api.github.com/users/abdulhaq-e/events{/privacy}","received_events_url":"https://api.github.com/users/abdulhaq-e/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T23:56:17Z","updated_at":"2016-06-23T23:56:17Z","body":"It seems to be a well known issue: https://github.com/karma-runner/karma/issues/1087 https://github.com/webpack/karma-webpack/issues/9"}}
{"actor":{"display_login":"abdulhaq-e"}}