developit / developit/jsdom-worker

ReferenceError: cov_2a33nrkdo3 is not defined

オープン
#26 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
291
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。