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

Log from .logTestingPlaygroundURL is to big and not working

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

@kito-arch がすでに取り組んでいます。

2025年1月25日 から。

評価

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

調査の方向性

まず、大規模な React コンポーネントで screen.logTestingPlaygroundURL() を使用して問題を再現し、テストを繰り返し実行した際に生成される URL のサイズを比較します。playground が空のままになることがある理由を調査し、大規模なコンポーネントの出力から常に利用可能な playground URL が生成されるようになった時点で、問題が完了したとみなします。

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

説明

Hello everybody.

When using
screen.logTestingPlaygroundURL()

Sometimes the generated URL is to big and when you paste it in the browser. the playground just stays empty, I found it to be random aswell, sometimes the same component generates a really big URL, and other times a smaller one, wich works, but it's kinda luck related on that one, sometimes i have to re-run my test for 5 to 10 times to get a URL that works.

I use this feature for making easier to find elements on the screen that will be used on my test, and the best queries to get to them, since the playground is great for that.

My component for the related test that this issue occurs is quite big, maybe thats the problem?
Any idea on how to make it work on bigger components, or should i try a diferent aproach?

Thanks!

主要言語
JavaScript
スター
19.7k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

testing-library/react-testing-library のほかの issue

testing-library/react-testing-library の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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