'JavaScript test runner that supports native modules

Is there a JavaScript test runner that supports native modules?



Solution 1:[1]

UPDATE for 2022: Jest now supports native modules experimentally. Complete information on configuring it, and information about current issues, can be found in the Jest docs.

Facebook's Jest supports native modules fairly painlessly through the use of the babel-jest plugin.

I'm not aware of any runners that don't require transpilation. Would love to know about them if they exist.

There is another answer here that discusses using Node's experimental module support to test with Jasmine, but I'm not sure this is better: https://stackoverflow.com/a/47835049/3084820

Solution 2:[2]

You can try Karma, Jest or Jasmine. Onestly, I prefer Karma or Jest

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Franceso Russo