testing-library / testing-library/testing-library-docs
Improve Angular Testing Library API documentation
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 479
- Forks
- 740
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I am new to Angular Testing and stumbled across some misunderstandings while writing my first tests. I would like to help you improve it, so let's start collecting the issues. 🙂
- The example for the declarations (within RenderOptions) is wrong. It configures the providers. Furthermore there is no descriptions for the providers option. https://testing-library.com/docs/angular-testing-library/api#declarations
- We might also add a note which of the RenderOptions are passed to the Angular TestBed. Or even separate those from the added render properties.
- Explaining that this library still works with the core testing functionality of Angular under the hood will also help to implement non-standard situations. For example in one test I needed to interact with a service. This can be done with the Angular TestBed:
TestBed.get(TargetService).init();
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la documentation de l’API Angular Testing Library sur la page RenderOptions liée. Vérifiez l’exemple de declarations, ajoutez la description manquante de providers et précisez quelles options sont transmises à Angular TestBed et comment TestBed peut prendre en charge les cas non standard. Le travail est terminé lorsque les exemples et les notes explicatives couvrent correctement ces points.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100