3 ms·
What sort of automated test framework do folks use while writing vanilla JS?
by afarrell 6y ago
What sort of automated test framework do folks use while writing vanilla JS?
- wolfgang42 6y agoIf I need tests I usually reach for the same tools I’d use for testing any other JS—in my case mocha, chai, and nyc—plus jsdom and jsdom-global (so I don’t have to spin up a browser for unit tests) and chai-dom.
- runarberg 6y agoI use AVA[1] and c8[2] for coverage. It only works in node so I have to use JSDOM to mimic the browser environment. 1: https://github.com/avajs/ava https://github.com/avajs/ava 2: https://github.com/bcoe/c8 https://github.com/bcoe/c8