1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Karma test runner keeps disconnecting when running locally

Discussão em 'Angular' iniciado por wvdz, Maio 6, 2025.

  1. wvdz

    wvdz Guest

    In my angular project, we are using the default test setup with Karma/Jasmine.

    For my coworkers, it works fine, but only for me the tests are running incredibly slow, and also disconnect frequently, which causes the complete test run to start from scratch. I have no clue what could be the issue. My co-workers are on the same laptop and chrome version.

    Eventually, the tests will complete, but it can take a really long time.

    Versions:
    Mac OS (actual): 15.4.1
    Mac OS (reported by Karma): 10.15.7
    Chrome: 136.0
    Karma: 6.4.0
    Angular: 18.2.7
    Jasmine: 5.2.0
    Node: 20.18.0


    Disconnect message: Disconnect reconnect failed before timeout of 2000ms.

    I've tried increasing the timeout, but this only makes things worse.

    I don't have any changes to karma.conf.js, just using the default.

    Continue reading...

Compartilhe esta Página