|
|
|
|
|
by inglor
4077 days ago
|
|
The tests generate a _random_ number of items. How it is a "good example" of TDDing react components? It will fail or pass based on something random so you might thing you're good to go but in fact your test fails. It also doesn't test how something will be _used_ but directly what it is checking ".textContent" equality. Overall this is nothing like what UI tests should look like IMO and it's the sort of thing that causes people to hate testing UI. |
|