bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-08-16 01:09:46 +03:00
parent a207c74e98
commit c41864e07f
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-test", "name": "ig-test",
"version": "1.3.0", "version": "1.3.1",
"description": "experimental test runner....", "description": "experimental test runner....",
"main": "test.js", "main": "test.js",
"bin": { "bin": {

View File

@ -449,6 +449,7 @@ argv.Parser({
], ],
// list tests...
default_files: undefined, default_files: undefined,
'-l': '-list', '-l': '-list',
@ -500,6 +501,7 @@ argv.Parser({
process.exit() }}, process.exit() }},
// add files/patterns...
test_modules: undefined, test_modules: undefined,
// XXX revise error handling... // XXX revise error handling...
@ -534,9 +536,10 @@ argv.Parser({
`${key}: only support .js modules, got: "${path}"`) } `${key}: only support .js modules, got: "${path}"`) }
// XXX should we handle the load error here??? // XXX should we handle the load error here???
that.test_modules[path] = that.test_modules[path] =
require('./' + path.slice(0, -3)) }) }) }}, require(process.cwd() +'/'+ path.slice(0, -3)) }) }) }},
// ignore paths...
ignore_files: undefined, ignore_files: undefined,
'-i': '-ignore', '-i': '-ignore',
@ -555,6 +558,7 @@ argv.Parser({
handler: function(){ handler: function(){
module.VERBOSE = true }}, module.VERBOSE = true }},
// hide stuff we do not need... // hide stuff we do not need...
'-quiet': undefined, '-quiet': undefined,
'-': undefined, '-': undefined,