The current options for unit testing are:
Currently, there is no way to run unit tests directly on node, but... A better approach is in the works. 🚧
For integration testing in the browser, there are no additional steps required.
This simple function will load all your files that are ending with the
-test suffix (
require.list() .filter(name => /-test$/.test(name)) .forEach(require);