Develop Jest mocks for testing

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
react-native, typescript
領域
mobile, testing

調査の方向性

まず、React Native モジュールをインポートすると失敗するテストを見つけ、現在の Jest 設定を確認します。必要なパッケージのモックを含む、言及されている Jest 設定ファイルと setup ファイルを追加します。モバイルデバイスでない環境でテストスイートを正しく実行できれば完了です。

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

説明

technical debt

Currently, the app's tests fail since they try to import React Native modules, which is not possible on a non-mobile device. Jest mocks (which "mock" the React Native modules) should be added so that tests can be performed correctly.

One method of implementing this is creating a Jest config file that runs a setup file containing mocks for all necessary packages before tests are run. This way, Jest mocks will have already been set up for all tests that will be run.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
1時間 7分
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

RoboJackets/apiary-react-native のほかの issue

RoboJackets/apiary-react-native の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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