Add generator function support
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- testing
Línea de trabajo
Start with td.replace and the library’s existing treatment of ordinary functions. Research isolated JavaScript generator examples, then define what a fake generator should do and how it should be stubbed and verified. Done means the behavior and API are agreed on and covered by tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
testdouble.js does not currently support generators. Prior to 3.2, td.replace would replace them as it would any other function, but this was accidental in that the resulting functions didn't really behave like generator functions.
We need to think through what a fake generator would look like and how it would be stubbed/verified. Right now I have no real idea because I haven't seen many useful, isolated examples of them.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.4k
- Forks
- 141
- Merge medio
- 2 h 30 min
- PR fusionados (30 d)
- 10
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 testdouble/testdouble.js
-
Feature request: `td.func().reset()` (reset spy/stub state)Posiblemente ocupada @MatrixNeoKozak la tomó hace 5 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
testdouble/testdouble.js#529 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
testdouble/testdouble.js#296 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
testdouble/testdouble.js#281 · 5 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
testdouble/testdouble.js#275 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
testdouble/testdouble.js#269 ·
Los mantenedores suelen responder en 1 día
Todos los issues de testdouble/testdouble.js
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
gkjohnson/three-mesh-bvh#933 ·
-
scope: curriculum status: waiting triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
freeCodeCamp/freeCodeCamp#71076 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
HarperFast/harper#3275 ·
Los mantenedores suelen responder en 1 día
-
liveQuery: a late rejection from an aborted (superseded) query run still reaches observer.errorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
steerion-labs/bounded-agent-runtime#93 ·
Los mantenedores suelen responder en 1 día