Last active
September 11, 2017 23:58
-
-
Save psaia/ea274c3c4d67489e861539e2f30dc710 to your computer and use it in GitHub Desktop.
Enable idiomatic "golang style" unit testing in node.js with mocha. Add this to npm's scripts or your pipeline.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NODE_ENV=test mocha --recursive ./**/*_test.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I find this much more readable than keeping them all in one directory together.