Mariusz Nowak c4e5509ba5
Ensure mocha options are passed prior test paths
This ensures that options are validated properly
2019-05-14 11:41:42 +02:00

17 lines
254 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
process.on('unhandledRejection', err => {
throw err;
});
if (process.argv.length <= 2) {
process.argv.push(
'--require=sinon-bluebird',
'!(node_modules)/**/*.test.js',
);
}
require('mocha/bin/_mocha');