-
Notifications
You must be signed in to change notification settings - Fork 11
Description
In my attempts with the form group setting issue #26, I have found myself wanting tests. So I made some on this branch of mine that was just focused on getting tests started: main...michael-small:ng-signal-forms:add-testing-library-tests
My question(s) in regards to tests
- Are you interested in having tests for the project
- Is this type of test, using
@testing-library/angular
, appropriate for this project?- Why I ask: I know you literally work on the library. But for context: I write what I am comfortable with writing and understanding. I have used Angular Testing Library a little bit. I have done limited unit testing and I mostly do Cypress component testing. Even if the thing I am testing is not a component itself, but I just find it easier to grasp. I know this type of testing isn't always optimal or relevant, but I find this is more understandable than unit testing and I would rather have well intended tests I personally find meaningful rather than not writing any tests.
- All that said, I think this probably isn't the most relevant form of testing that this library could stand to use? I imagine it would be more like unit testing, rather than component/DOM centric approach. But that is out of my wheelhouse, though I want to help write tests.
If you think it is reasonable to use @testing-library/angular
for the project, I would like to add a lot more tests, at least ones to bolster the form group setting issue. And with the ones I made on that branch, I imagine they could be better (I see you have articles on using Angular Testing Library that I haven't read yet), but I don't want to polish them or write more if you think they aren't the most appropriate for this project.
If you think it is worth it to have tests but a different type of tests, I would like to learn how to make those. But if you are fine with me using Angular Testing Library in this weird way, then I will probably proceed with writing more.