Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Errors in tests

オープン
#668 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
cli, testing

調査の方向性

まず deploy.test.js の command.error モックを削除し、テストスイートを実行して38件の失敗を列挙します。影響を受ける各テストの command.error パスを追跡し、無効なテストを oclif の終了動作を反映するように書き換えます。完了の条件は、テストが command.error の後に実行されるべき呼び出しをもはやアサートしないことです。

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

説明

bug

There are a bunch of cases where we mock command.error using command.error = jest.fn()
The oclif behavior of command.error is to exit, however our mock simply swallows the error and continues. This means we have a whole bunch of places where we are testing for arguments and calls to functions that should never have happened because command.error should have exited.

Simply removing the mock in deploy.test.js reveals 38 errors, which are all invalid tests and need to be written.

主要言語
JavaScript
スター
28
フォーク
41
平均マージ
1日 13時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

adobe/aio-cli-plugin-app のほかの issue

adobe/aio-cli-plugin-app の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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