How to mock <Wrapper /> ?
@wangela がすでに取り組んでいます。
2023年4月21日 から。
評価
この issue はまだ評価されていません。
説明
Hey,
I am completely lost on unit testing using Jest.
Basically, does anyone know how to mock in order to render child component in unit tests?
const MyApp = () => (
<Wrapper apiKey={"YOUR_API_KEY"}>
<MyMapComponent />
</Wrapper>
);
The thing is, always have Status of loading, and it never goes to Success, so the child component is never rendered. Is there a way to mock that Status to Success?
I'm using jest, and react-testing-library.
Thank you.
- 主要言語
- TypeScript
- スター
- 381
- フォーク
- 50
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googlemaps/react-wrapper のほかの issue
-
triage me type: feature request
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
googlemaps/react-wrapper#839 ·
-
priority: p1 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
googlemaps/react-wrapper#782 · コメント 3 件 · リアクション 4 件 ·
-
customize map style再び着手できるかも @wangela が 1277 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtriage me type: feature request
googlemaps/react-wrapper#667 · コメント 4 件 · 担当者 1 名 ·
-
Markers flicker when scrolling on the map, React 18再び着手できるかも @wangela が 1330 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
googlemaps/react-wrapper#642 · コメント 9 件 · リアクション 15 件 · 担当者 1 名 ·
-
[ Map, Marker ] WebGL Uncaught Error: Not initialized. - Next js再び着手できるかも @wangela が 1330 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtriage me type: bug
googlemaps/react-wrapper#641 · コメント 1 件 · リアクション 3 件 · 担当者 1 名 ·
googlemaps/react-wrapper の issue をすべて見る
似ている issue
-
Runner API: GET /api/jobs/<id> returns branch: null; the branch only appears under input.branchオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
radiancelux/prgenie#204 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
cqframework/vscode-cql#198 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
WalletConnect/walletconnect-monorepo#7392 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
sandtable-ai/sandtable#550 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100