lint: add tests for three caption rules that have none
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- bun, typescript
- Área
- testing-qa
Línea de trabajo
Las tres reglas están definidas en packages/lint/src/rules/captions.ts en las líneas 90, 171 y 212; las pruebas deben ir en packages/lint/src/rules/captions.test.ts, junto a las existentes. Lee primero la condición de cada regla y luego escribe una composición que la active y una variante cercana que no debería activarla, comprobando el código y la severidad. Se considera terminado cuando cada una de caption_transcript_not_inline, caption_textshadow_on_group_container y caption_fittext_scale_mismatch tenga una prueba positiva y una negativa, y bun run --cwd packages/lint test pase, sin cambios en las reglas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
These lint rules have no test that mentions their code, so a change that breaks them would go unnoticed:
| Code | Severity | Defined at |
|---|---|---|
caption_transcript_not_inline |
error | packages/lint/src/rules/captions.ts:90 |
caption_textshadow_on_group_container |
warning | packages/lint/src/rules/captions.ts:171 |
caption_fittext_scale_mismatch |
warning | packages/lint/src/rules/captions.ts:212 |
Tests go in packages/lint/src/rules/captions.test.ts.
Proposed solution
Add tests to the matching *.test.ts file next to each rule, following the style of the other tests in that file. For each rule, add at least:
- one composition that triggers the finding, asserting the code and severity, and
- one similar composition that should not trigger it.
Read the rule's code first: the condition it checks tells you what the minimal triggering composition looks like.
Acceptance criteria
- Each code above is asserted by at least one positive and one negative test.
bun run --cwd packages/lint testpasses.- No rule behaviour changes. If writing a test shows a rule misbehaving, note it in the PR or open a separate issue rather than changing the rule in the same PR.
- Lenguaje dominante
- TypeScript
- Estrellas
- 54.1k
- Forks
- 4.9k
- Merge medio
- 8 h 39 min
- PR fusionados (30 d)
- 736
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de heygen-com/hyperframes
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
heygen-com/hyperframes#5538 ·
Los mantenedores suelen responder en 1 día
-
`hyperframes docs examples` lists templates that don't existPosiblemente ocupada @Muhtasim-Munif-Fahim la tomó hace 3 días. Abiertobug difficulty/easy help wanted triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
heygen-com/hyperframes#5393 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
gcp-cloud-run image pins Chrome 148, which drops `background-clip: text` glyphs inside layered children; the CLI's Chrome 152 paints themPosiblemente ocupada @user-github-me la tomó hace 4 días. Abiertobug difficulty/medium triage/ready
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
heygen-com/hyperframes#5117 ·
Los mantenedores suelen responder en 1 día
-
Docs: clarify that "Enable auto-update" is only available in the Claude Code terminal (CLI) /plugin UIPosiblemente ocupada @rumi7911 la tomó hace 7 días. Abiertodifficulty/easy documentation triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
heygen-com/hyperframes#5027 ·
Los mantenedores suelen responder en 1 día
-
fix(producer): propagate useGpu to HDR layered streaming encoderPosiblemente ocupada @Monster-GM la tomó hace 9 días. Abiertobug difficulty/easy triage/ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
heygen-com/hyperframes#5002 ·
Los mantenedores suelen responder en 1 día
Todos los issues de heygen-com/hyperframes
Issues similares
-
ui(ListToolbar): search takes the full row on a phone instead of sharing it with the result countAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
immich-app/immich#32426 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue hacktoberfest help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
libredb/libredb-studio#1756 ·
Los mantenedores suelen responder en 1 día