3 ms·
What a holy mess is the landscape of the testing frameworks, even worse than that of the front end frameworks itself.
by durnygbur 7y ago
What a holy mess is the landscape of the testing frameworks, even worse than that of the front end frameworks itself.
- spankalee 7y agoThis is incredibly true. Testing libraries have not kept up with changes to JavaScript and web dev in general. I long for a test runner that does as little magic as possible, doesn't try to be a build system and module loader, doesn't inject random libraries into the environment, it just loads URLs and reports back test results. Test runners and assert libraries can massively slim down too if they because simple importable modules and don't modify the global environment or create plug-in systems or complex test lifecycles. Tests are async functions that resolve or reject, that's it.
- gherkinnn 7y agoI’ve used TAP and nodeTAP and always ran in to some problems. Then I gave AVA a try. Makes a pretty decent impression, though I have never used it in production. It’s simple enough, fast, and I have yet to run head-first in to some problem.
- aphextron 7y agoJest with Enzyme/react-testing-library seems to be consolidating things in the way React did for frameworks. It's batteries included, and everything "Just Works".