4 ms·
If you have a user facing component that uses utility functions, let's say a component that shows a table with a sum (that uses a utility function). Then refact
by atom_arranger 8y ago
If you have a user facing component that uses utility functions, let's say a component that shows a table with a sum (that uses a utility function). Then refactoring your sum function should not break your tests of the table component.
I'm not saying you shouldn't test your sum function using unit tests, but ultimately users don't care so much about the sum function, they care that they have a table, and it should show a sum, and so that functionality should be tested.
- kurtisc 8y agoUsers care if the table is broken because it's taking too long to find the bug from endpoint-only tests