developit / developit/jsdom-worker

ReferenceError: cov_2a33nrkdo3 is not defined

Offen
#26 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
291
Forks
20
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

```
console.error
ReferenceError: cov_2a33nrkdo3 is not defined
at parseArgs (eval at (/Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:130:6), :9:3)
at Object.eval (eval at (/Users/leonardorick/Documents/git/others/utils/javascript/node_modules/jsdom-worker/src/index.js:130:6), :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](https://github.com/LeonardoRick/utils/blob/main/javascript/src/run-on-worker.js) 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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduce the failure from the linked run-on-worker.js example with `npm run test -- --coverage`, then inspect the worker evaluation path around node_modules/jsdom-worker/src/index.js:130-139. Compare the covered and non-covered runs to identify why the generated coverage reference is unavailable inside the worker; done means the coverage run completes without this ReferenceError.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
testing
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.