BUG: Asserting after `test.done()` is allowed
オープン
- 主要言語
- JavaScript
- スター
- 1.9k
- フォーク
- 359
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
``` javascript
exports.test1 = function(test) {
test.expect(1);
test.ok(true, 'is true');
test.done();
// this should throw an error, however it passes
test.ok(true, 'is true2');
};
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by reproducing the example using test.ok after test.done and trace how those entry points handle completion and later assertions. The work is done when an assertion after test.done throws the expected error while assertions before completion retain their current behavior, with the regression covered by the project's tests.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- testing
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100