developit / developit/jsdom-worker

ReferenceError: cov_2a33nrkdo3 is not defined

Ouverte
#26 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
291
Forks
20
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

```
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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
testing
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.