Ensure your node examples/*.js work by using them as mocha tests.
mecha to your package.json
Now your example files can use mocha when run.
// This is my awesome project example at examples/awesome.jsvar mecha = ;// use `describe' and `it`mecha;// when run as an example use a dot reporter, if no argument is given// a silent reporter will be used.;
Users run your example, and see the message printed above
But when run as a test, they see test reports.
You can therefore include your example files to your test harness,
test/examples.js file to your project
// Ensure all examples are working