diff --git a/cli.mjs b/cli.mjs index c59920a..174b2ae 100644 --- a/cli.mjs +++ b/cli.mjs @@ -54,7 +54,7 @@ cli.parseOptions(args) }) .catch(function(err) { showErrorAndExit('Unknown error while processing arguments', err) }) .then(function() { - if (!cli.files.length) { + if (!cli.files.length && cli.run === 'test') { showErrorAndExit('No files were found with pattern', cli.targets.join(',')) } diff --git a/package.json b/package.json index 1d24e3b..9ac95fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eltro", - "version": "1.4.1", + "version": "1.4.2", "description": "Eltro is a tiny no-dependancy test framework for node", "main": "index.mjs", "scripts": {