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

Remaining wall-clock dependent tests

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
playwright, typescript
領域
testing

調査の方向性

Start with the listed tests in test/surfaces/vite-plugin.test.ts and read how they handle the production debounce; identify how the current test setup can drive time deterministically. Then review the waits in test/scripts/demo-integration-signals.test.ts and test/surfaces/overlay-client.test.ts for assertions that can use positive signals. Done means the listed load-sensitive waits are addressed while the gated integration assertions remain unchanged.

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

説明

bug

What

Three load-sensitive tests were made deterministic before the freeze. A sweep found others that depend on real elapsed time and were left in place:

  • test/surfaces/vite-plugin.test.ts around lines 837 to 853: three 20 ms pauses race a real 80 ms production debounce; a delayed sleep fires the debounce early and breaks the nothing-has-run assertions. The strongest remaining risk.
  • test/surfaces/vite-plugin.test.ts lines 561, 633, 781: 120 ms timers waiting out the same debounce with a 40 ms margin.
  • test/scripts/demo-integration-signals.test.ts lines 71 to 73: asserts under 1,000 ms around a real 50 ms bound.
  • test/surfaces/scrub.test.ts lines 468 to 474: under 8,000 ms over synchronous work.
  • test/deps/real.integration.test.ts lines 218 to 220 and test/deps/readiness.real.test.ts: gated behind the integration flag; the latter are load-safe by direction.
  • test/surfaces/overlay-client.test.ts: two waits that assert nothing happened (load only strengthens them), two 900 ms route delays staging stale-response races, and many expect.poll calls at the 1,000 ms default around real Chromium round trips.

Direction

Drive the debounce with a fake clock in the vite plugin tests. Convert the nothing-happened waits to a positive signal. Leave the gated integration assertions.

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

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

usabl-dev/usabl のほかの issue

usabl-dev/usabl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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