JavaScript test runner that supports native modules

Viewed 48

Is there a JavaScript test runner that supports native modules?

2 Answers

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

Related