Testing native ES modules using Mocha and esm. – Alex Gibson
Turns out, many JavaScript testing frameworks don’t yet support native ES modules out of the box, and I was struggling to find an easy solution that didn’t require transpiling my code back to ES5.