If you are looking for a more browser like testing environment, mocha-jsdom is a great option.
Matt Jones
1

Hi Matt. Thanks for sharing! Never heard of mocha-jsdom and it’s exactly what we need here. I’ll be editing the text to mention it.