When you start running tests using Karma 2.0.3 and clear the url during tests. To start from clean point. Karma fails to Javascript error
Karma should start from beginning
Karma crashes and browser closes
Windows 10,
NodeJS 10.3.0
Chrome 67.0.3396 + Chrome-launcher
Callstack
18 06 2018 09:34:11.079:ERROR [karma]: TypeError: Cannot read property 'markCaptured' of undefined
at Launcher.markCaptured (C:\GIT\SeveraUI\node_modules\karma\lib\launcher.js:176:13)
at Server.on (C:\GIT\SeveraUI\node_modules\karma\lib\server.js:179:16)
at Server.emit (events.js:182:13)
at Browser.init (C:\GIT\SeveraUI\node_modules\karma\lib\browser.js:54:18)
at Socket.socket.on (C:\GIT\SeveraUI\node_modules\karma\lib\server.js:235:22)
at Socket.emit (events.js:182:13)
at C:\GIT\SeveraUI\node_modules\socket.io\lib\socket.js:513:12
at process._tickCallback (internal/process/next_tick.js:61:11)
(node:14320) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated
Edit: This works in Karma 2.0.2
Just noticed that this PR might be related, but its not released:
Also seeing this issue
Update your package.json and it will work
"karma": "~2.0.3",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
Updating the package.json in this way should not fix this issue. Install 2.0.2 if this blocks you.
I also see this behavior happen when simply opening a new browser and going to http://localhost:9876:
Hi, I am having this issue too. Is there any npm command to revert install or install older version of karma or is the best solution to revert the commit?
Fixed by #3047
Most helpful comment
Also seeing this issue