mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 18:30:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a207c74e98
commit
c41864e07f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-test",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "experimental test runner....",
|
||||
"main": "test.js",
|
||||
"bin": {
|
||||
|
||||
6
test.js
6
test.js
@ -449,6 +449,7 @@ argv.Parser({
|
||||
],
|
||||
|
||||
|
||||
// list tests...
|
||||
default_files: undefined,
|
||||
|
||||
'-l': '-list',
|
||||
@ -500,6 +501,7 @@ argv.Parser({
|
||||
process.exit() }},
|
||||
|
||||
|
||||
// add files/patterns...
|
||||
test_modules: undefined,
|
||||
|
||||
// XXX revise error handling...
|
||||
@ -534,9 +536,10 @@ argv.Parser({
|
||||
`${key}: only support .js modules, got: "${path}"`) }
|
||||
// XXX should we handle the load error here???
|
||||
that.test_modules[path] =
|
||||
require('./' + path.slice(0, -3)) }) }) }},
|
||||
require(process.cwd() +'/'+ path.slice(0, -3)) }) }) }},
|
||||
|
||||
|
||||
// ignore paths...
|
||||
ignore_files: undefined,
|
||||
|
||||
'-i': '-ignore',
|
||||
@ -555,6 +558,7 @@ argv.Parser({
|
||||
handler: function(){
|
||||
module.VERBOSE = true }},
|
||||
|
||||
|
||||
// hide stuff we do not need...
|
||||
'-quiet': undefined,
|
||||
'-': undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user