DEV Community

Norlys Sánchez
Norlys Sánchez

Posted on

2 1

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?

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay