Do any test frameworks support tests that use the new ES Modules syntax? I have a JS application which heavily uses .mjs
files with ES Modules. I tried Jest and Jasmine, both of which throw errors when I try to write run tests for my app. I need to test this file:
math.mjs
export function add(a, b) {
return a + b;
}
Aucun commentaire:
Enregistrer un commentaire