-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
When using this stack of dependencies:
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
and this config:
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageReporter: {
dir: require('path').join(__dirname, '../../coverage/lib'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
(both generated by a brand new Angular 11 project)
And clicking on a specific spec link in the DEBUG view (I don't really know if it's supposed to work in the regular view)
We get this error in the console (apparently not the first time we click)
:
10 12 2020 08:43:34.836:INFO [Chrome 87.0.4280.66 (Windows 10)]: Connected on socket dqHo_8kFL8ZscxeQAAAD with id manual-8346
10 12 2020 08:43:34.867:WARN [Chrome 87.0.4280.66 (Windows 10)]: Disconnected (0 times)Client disconnected from CONNECTED state (transport error)
Chrome 87.0.4280.66 (Windows 10) ERROR
DisconnectedClient disconnected from CONNECTED state (transport error)
Chrome 87.0.4280.66 (Windows 10) ERROR
DisconnectedClient disconnected from CONNECTED state (transport error)
Chrome 87.0.4280.66 (Windows 10): Executed 2 of 2 SUCCESS (0.092 secs / 0.038 secs)
Chrome 87.0.4280.66 (Windows 10): Executed 2 of 2 SUCCESS (0.087 secs / 0.05 secs)And, as we can see, all specs are eventually ran instead. LOG_DEBUG isn't too much of help here.
For an easy repro, create an empty Angular 11 project, with a new library in it and run its tests:
ng new --create-application=false --skip-git
cd <projectname>
ng g lib lib
ng run lib:test2 spec files will be available to run
jlpstolwijk
Metadata
Metadata
Assignees
Labels
No labels