DEV Community

Norlys Sánchez
Norlys Sánchez

Posted on

ERROR Disconnected , because no message in 60000 ms - Angular

Angular 13. My tests show error: "ERROR
Disconnected , because no message in 60000 ms".

My Karma.config.js

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('karma-teamcity-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
preprocessors: {
},
mime: {
'text/x-typescript': [
'ts',
'tsx'
]
},
client: {
jasmine: {
random: false,
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageReporter: {
dir: require('path').join(__dirname, 'coverage'),
// reports: ['html', 'lcovonly', 'text-summary', 'teamcity'],
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
],
fixWebpackSourcePaths: true,
'report-config': {
html: {
subdir: 'html'
},
lcovonly: {
subdir: 'lcov',
file: 'lcov.info'
},
cobertura: {
subdir: 'cobertura',
file: 'coverage.xml'
}
}
},
customLaunchers: {
ChromeDebugging: {
base: 'Chrome',
flags: ['--remote-debugging-port=9333', 'http://localhost:8080/debug.html']
}
},
reporters: ['progress', 'kjhtml'],
port: 8080,
colors: true,
logLevel: config.LOG_WARN,
autoWatch: true,
browsers: ['ChromeDebugging'],
singleRun: true,
browserNoActivityTimeout: 100000,
browserDisconnectTimeout: 100000,
browserDisconnectTolerance: 2

});
};

Does anyone know what the problem is?

Discussion (0)