japa-cli
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,6 @@ | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/thetutlage/japa-cli/compare/v1.0.0...v1.0.1) (2017-04-02) | ||
<a name="1.0.0"></a> | ||
@@ -2,0 +7,0 @@ # 1.0.0 (2017-04-01) |
{ | ||
"name": "japa-cli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Cli tool for japa test runner", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,6 +26,2 @@ 'use strict' | ||
/** | ||
* From the project root. | ||
*/ | ||
this._japa = this._requireJapa() | ||
this._japaCli = this._requireJapaCli() | ||
@@ -157,3 +153,5 @@ | ||
return globby([testsGlob].concat(filesToIgnore)) | ||
return globby([testsGlob].concat(filesToIgnore), { | ||
realpath: true | ||
}) | ||
} | ||
@@ -196,2 +194,11 @@ | ||
/** | ||
* Update japa settings before running the | ||
* tests | ||
*/ | ||
const japa = this._requireJapa() | ||
if (this._timeout !== null && !isNaN(this._timeout)) { japa.timeout(this._timeout) } | ||
if (this._bail !== null) { japa.bail(this._bail) } | ||
if (this._grep) { japa.grep(this._grep) } | ||
/** | ||
* Wait for process to exist, since japa will | ||
@@ -226,9 +233,2 @@ * return the tests by itself. | ||
/** | ||
* Call methods over japa when defined | ||
*/ | ||
if (this._timeout !== null && !isNaN(this._timeout)) { this._japa.timeout(this._timeout) } | ||
if (this._bail !== null) { this._japa.bail(this._bail) } | ||
if (this._grep) { this._japa.grep(this._grep) } | ||
/** | ||
* Time to get the test files | ||
@@ -235,0 +235,0 @@ * Filter them |
7847