[comixed-dev] Re: Weird error running unit tests...

  • From: "Darryl L. Pierce" <mcpierce@xxxxxxxxx>
  • To: comixed-dev@xxxxxxxxxxxxx
  • Date: Wed, 3 Nov 2021 13:35:22 -0400

To follow up on this, the error disappears if I only run a few of the
tests (using fdescribe on a couple of spec files). And, when I got
home (I was traveling the past few days and was using my MBP) my Mini
is running all of the tests just fine. SO I'm not sure what's up here.
Anybody else seen issues around running tests lately?

On Mon, Nov 1, 2021 at 4:48 PM Darryl L. Pierce <mcpierce@xxxxxxxxx> wrote:


Working on a ticket today I'm suddenly seeing this error on both
master and my testing branch:

---8<[snip]---
01 11 2021 15:58:25.001:ERROR [karma-server]: UnhandledRejection:
Cannot read properties of undefined (reading 'range')
01 11 2021 15:58:25.001:ERROR [karma-server]: TypeError: Cannot read
properties of undefined (reading 'range')
    at handleRangeHeaders
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware/lib/util.js:131:21)
    at processRequest
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware/lib/middleware.js:98:19)
    at ready 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware/lib/util.js:53:12)
    at handleRequest
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware/lib/util.js:182:5)
    at 
/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware/lib/middleware.js:64:7
    at new Promise (<anonymous>)
    at middleware
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-middleware/lib/middleware.js:63:12)
    at 
/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/karma.js:270:13
    at call 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/connect/index.js:239:7)
    at next 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/connect/index.js:183:5)
    at 
/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/karma/lib/web-server.js:24:9
    at call 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/connect/index.js:239:7)
    at next 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/connect/index.js:183:5)
    at nullProxy
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/karma/lib/middleware/proxy.js:81:52)
    at call 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/connect/index.js:239:7)
    at next 
(/Users/mcpierce/Repositories/comixed/comixed-webui/node_modules/connect/index.js:183:5)
---8<[snip]---

Anybody else seeing this? Since it's happening on master I don't
believe it's our code at fault.

--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." -
Gord Downie



-- 
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." -
Gord Downie

Other related posts: