Browse Source

Merge pull request #65 from vdemedes/error-when-no-tests

Display error message when there are no test files
babel-plugin-for-integration-tests
Sindre Sorhus 9 years ago
parent
commit
5dc0873b74
  1. 5
      cli.js

5
cli.js

@ -106,6 +106,11 @@ function init(files) {
return path.join(process.cwd(), file); return path.join(process.cwd(), file);
}) })
.then(function (files) { .then(function (files) {
if (files.length === 0) {
log.error('Couldn\'t find any files to test\n');
process.exit(1);
}
var tests = files.map(run); var tests = files.map(run);
return Promise.all(tests); return Promise.all(tests);

Loading…
Cancel
Save