text: parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"3rkG":[function(require,module,exports) {
  module.exports=function(e){return e.map(e=>{const t=e.split("__tests__")[0],s=e.substr(e.lastIndexOf("/")+1,1e3),n=require(e).default;return{folderPath:t,fileName:s,runnables:Object.keys(n).map(e=>({name:e,testToRun:n[e]}))}})};
  },{}],"R1RA":[function(require,module,exports) {
  module.exports=function(e){return e.reduce((e,n)=>{const{runnables:r}=n;return e+r.length},0)};
  },{}],"bXvD":[function(require,module,exports) {
  module.exports={verticalSpace(o=1){for(let l=0;l<o;l++)console.log("")},horizontalLine(o){const l=process.stdout.columns;let e="";for(let t=0;t<l;t++)e+="-";o&&console.log(o,e),o||console.log(e)},centered(o="",l){if(o.length>0){const e=process.stdout.columns,t=Math.floor((e-o.length)/2);let s="";for(let o=0;o<t;o++)s+=" ";s+=o,l&&console.log(l,s),l||console.log(s)}},columns(o,l){let e=o;const t=60-o.length;for(let s=0;s<t;s++)e+=" ";e+=l,console.log(e)}};
  },{}],"i6/B":[function(require,module,exports) {
  const e=require("./formatters"),o="[31m%s[0m";module.exports=function({keyPath:t,limit:r,successes:c,errors:n}){const l=(new Date).toJSON(),a=l.substr(0,10)+" "+l.substr(11,8);e.verticalSpace(2),e.horizontalLine(),e.verticalSpace(1),e.centered(t.toUpperCase()),e.centered("TEST REPORT"),e.centered(a),e.verticalSpace(2),e.centered(`Total Tests --\x3e ${String(r).padStart(3," ")}`),e.centered(`       Pass --\x3e ${String(c).padStart(3," ")}`),e.centered(`       Fail --\x3e ${String(n.length).padStart(3," ")}`),e.verticalSpace(2),n.length>0&&(e.verticalSpace(1),e.horizontalLine(),e.centered("ERROR DETAILS"),e.horizontalLine(),e.verticalSpace(1),console.group(),console.group(),n.forEach(e=>{const{folderPath:t,fileName:r,counterAsText:c,name:n,error:l}=e,a=`${t}${r}`;console.group(a),console.log(""),console.log(o,`${c} - ${n}`);const{actual:s,expected:i}=l;console.dir({actual:s},{colors:!0,depth:null}),console.dir({expected:i},{colors:!0,depth:null}),console.log(""),console.groupEnd(a)}),console.groupEnd(),console.groupEnd()),e.horizontalLine(),e.horizontalLine(),e.verticalSpace(2)};
  },{"./formatters":"bXvD"}],"A42X":[function(require,module,exports) {
  const e=require("./countTests"),t=require("./produceTestReport"),r=require("./formatters"),o="[32m%s[0m";module.exports=function(s,c){if(0===c.length)return;let n=[],a=0;const l=e(c);let i=0,u="";const h=(new Date).toJSON(),m=h.substr(0,10)+" "+h.substr(11,8);r.verticalSpace(10),r.horizontalLine(),r.horizontalLine(),r.verticalSpace(1),r.centered(s.toUpperCase()),r.centered("TEST RUNNER"),r.centered(m),r.verticalSpace(1);c.forEach(e=>{const{folderPath:c,fileName:h,runnables:m}=e;c!==u&&(r.verticalSpace(2),console.log(o,`  ${c}`),r.horizontalLine(o),u=c),console.log(`  > ${h}`),m.forEach(e=>{const{name:r,testToRun:o}=e;try{o(),a++,++i===l&&t({keyPath:s,limit:l,successes:a,errors:n})}catch(u){i++;const e=String(i).padStart(4,"0");n.push({name:r,error:u,counterAsText:e,fileName:h,folderPath:c}),console.log("[31m%s[0m",`        |- ${e}   ${r}`),i===l&&t({keyPath:s,limit:l,successes:a,errors:n})}})})};
  },{"./countTests":"R1RA","./produceTestReport":"i6/B","./formatters":"bXvD"}],"TLlS":[function(require,module,exports) {
  const e=require("fs"),r=require("path"),n={includeDir:["__tests__"],includeFile:[".test.js"],excludeDir:["node_modules"]},t=e=>{const r=n.excludeDir.reduce((r,n)=>r&&e.indexOf(n)>-1,!0),t=n.includeDir.reduce((r,n)=>r||e.indexOf(n)>-1,!1),i=n.includeFile.reduce((r,n)=>r||e.indexOf(n)>-1,!1);return!r&&t&&i},i=function(r){return new Promise((n,t)=>{e.readdir(r,(e,r)=>{e&&t(e),n(r)})})},c=function(r){return new Promise((n,t)=>{e.stat(r,(e,r)=>{e&&t(e),n(r)})})};module.exports=function e(n){return i(n).then(i=>Promise.all(i.map(i=>{const o=r.resolve(n,i);return c(o).then(r=>r.isDirectory()?e(o):t(o)?o:[])}))).then(e=>Array.prototype.concat.apply([],e)).catch(console.log)};
  },{}],"Focm":[function(require,module,exports) {
  const e=require("./utils/getUnits"),t=require("./utils/runTests"),n=require("./utils/walkDirectory");module.exports.init=function(s){console.log("Test Runner inited ..."),Object.keys(s).map(i=>{const o=s[i];return n(o).then(n=>{const s=e(n);t(i,s)}).catch(console.log)})};
  },{"./utils/getUnits":"3rkG","./utils/runTests":"A42X","./utils/walkDirectory":"TLlS"}]},{},["Focm"], null)
  //# sourceMappingURL=/index.map