UNPKG

352 BJavaScriptView Raw
1#!/usr/bin/env node
2let reporter;
3try {
4 reporter = require('nodeunit').reporters.default;
5}
6catch(e) {
7 console.log("Cannot find nodeunit module.");
8 console.log("Make sure to run 'npm install nodeunit'");
9 process.exit();
10}
11
12process.chdir(__dirname);
13reporter.run(['test/'], null, function(failure) {
14 process.exit(failure ? 1 : 0)
15});