4 ms·
I like the idea of accessible code. It seems the next level after testable code. Code with a lot of mockable dependencies is usually considered testable but so
by msangi 9y ago
I like the idea of accessible code. It seems the next level after testable code.
Code with a lot of mockable dependencies is usually considered testable but sometimes it's a pain to setup.
Accessible code seems to fix this. Instead of taking dependencies, return some data so it's easy to check what your component does in isolation.