Testing with @testing-library/react-native
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react-native
調査の方向性
まず、示されている @testing-library/react-native のテストを実行し、CopilotText 周辺の walkthroughable モックを調べます。レンダリングされたツリーを Text コンポーネントと比較し、testID が公開されない理由を特定します。文書化されたテストセットアップで getByTestId('test-schedule-name') が CopilotText 要素を見つけられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Current Behavior
Testing with @testing-library/react-native the CopilotText element is not found
Unable to find an element with testID: test-schedule-name
...
const CopilotText = walkthroughable(Text);
^
Input Code
import { walkthroughable, CopilotStep } from 'react-native-copilot';
...
const CopilotText = walkthroughable(Text);
...
<View>
<CopilotStep order={2} name='name'>
<CopilotText testID={'test-schedule-name'}>
{this.props.scheduleName}
</CopilotText>
</CopilotStep>
</View>
...
The test
jest.mock('react-native-copilot', () => ({
walkthroughable: WrappedComponent => ({ copilot, ...props }) => <WrappedComponent {...copilot} {...props} />,
}));
it('displays name', () => {
const { getByTestId } = render(<MyComponent />);
const scheduleName = getByTestId('test-schedule-name');
...
});
Expected behavior/code
Be able to select the CopilotText as the Text do
Environment
react-native-copilot: [e.g. v2.4.6]react-native: 0.59.0react-native-svg: 9.11.1
Possible Solution
Another way of mocking the module (?)
- 主要言語
- TypeScript
- スター
- 2.4k
- フォーク
- 425
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mohebifar/react-native-copilot のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
mohebifar/react-native-copilot#354 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
mohebifar/react-native-copilot#351 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
mohebifar/react-native-copilot#349 · コメント 11 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
mohebifar/react-native-copilot#348 · コメント 2 件 ·
mohebifar/react-native-copilot の issue をすべて見る
似ている issue
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ag-ui-protocol/ag-ui#3504 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6151 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#161712 ·
メンテナーはふだん 1 日以内に返信
-
bug p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rothgar/rabble.radio#283 ·
メンテナーはふだん 1 日以内に返信
-
bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nightly-labs/openbot#19805 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信