Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Remaining wall-clock dependent tests

Abierto
#265 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
56/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
playwright, typescript
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
2 h 48 min
PR fusionados (30 d)
8

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de usabl-dev/usabl

Todos los issues de usabl-dev/usabl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.