jsdom-worker icon indicating copy to clipboard operation
jsdom-worker copied to clipboard

ReferenceError: cov_2a33nrkdo3 is not defined

Open LeonardoRick opened this issue 1 year ago • 2 comments

 console.error
    ReferenceError: cov_2a33nrkdo3 is not defined
        at parseArgs (eval at <anonymous> (/Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:130:6), <anonymous>:9:3)
        at Object.eval (eval at <anonymous> (/Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:130:6), <anonymous>:6:23)
        at /Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:139:2

to reproduce you can go to my repo and run the tests as

npm run test -- --coverage

The error only appear when I try to run the tests with coverage enabled and it looks really like an internal thing breaking that I couldn't understand the relation with the coverage flag

LeonardoRick avatar Jan 27 '24 01:01 LeonardoRick

console.error
    ReferenceError: cov_hu7jftp2e is not defined
        at eval (eval at <anonymous> (E:\fork-project\code\fe-ap-utils\node_modules\jsdom-worker\dist\jsdom-worker.js:1:2403), <anonymous>:6:5)
        at Object.eval (eval at <anonymous> (E:\fork-project\code\fe-ap-utils\node_modules\jsdom-worker\dist\jsdom-worker.js:1:2403), <anonymous>:64:5

I also encountered the same problem, there are solutions?

cywcd avatar Jul 01 '24 05:07 cywcd