Comparing version 2.0.10 to 3.0.0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const list_1 = require("./src/Reporter/list"); | ||
const list_1 = __importDefault(require("./src/Reporter/list")); | ||
var Test_1 = require("./src/Test"); | ||
@@ -5,0 +8,0 @@ exports.Test = Test_1.Test; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Exceptions_1 = require("../Exceptions"); | ||
const Debug = require("debug"); | ||
const debug = Debug('japa'); | ||
const debug_1 = __importDefault(require("debug")); | ||
const debug = debug_1.default('japa'); | ||
async function asPromise(fn, args) { | ||
@@ -7,0 +10,0 @@ return fn(...args); |
/// <reference types="node" /> | ||
import * as Emitter from 'events'; | ||
import Emitter from 'events'; | ||
declare const emitter: Emitter; | ||
export { emitter }; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Emitter = require("events"); | ||
const emitter = new Emitter(); | ||
const events_1 = __importDefault(require("events")); | ||
const emitter = new events_1.default(); | ||
exports.emitter = emitter; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ow_1 = require("ow"); | ||
const ow_1 = __importDefault(require("ow")); | ||
const Hook_1 = require("../Hook"); | ||
@@ -5,0 +8,0 @@ const Test_1 = require("../Test"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const chalk_1 = require("chalk"); | ||
const ms = require("ms"); | ||
const variableDiff = require("variable-diff"); | ||
const rightPad = require("right-pad"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const ms_1 = __importDefault(require("ms")); | ||
const variable_diff_1 = __importDefault(require("variable-diff")); | ||
const right_pad_1 = __importDefault(require("right-pad")); | ||
const utils_1 = require("../utils"); | ||
@@ -50,3 +53,3 @@ const Contracts_1 = require("../Contracts"); | ||
if (count) { | ||
console.log(chalk_1.default.dim(`${rightPad(label, 13)} : ${count}`)); | ||
console.log(chalk_1.default.dim(`${right_pad_1.default(label, 13)} : ${count}`)); | ||
} | ||
@@ -62,3 +65,3 @@ } | ||
console.log(chalk_1.default.red(` Assertion Error: ${error.message}`)); | ||
variableDiff(actual, expected).text.split('\n').forEach((line) => { | ||
variable_diff_1.default(actual, expected).text.split('\n').forEach((line) => { | ||
console.log(` ${line}`); | ||
@@ -74,3 +77,3 @@ }); | ||
const message = chalk_1.default[colors[test.status]](test.title); | ||
const duration = chalk_1.default.dim(`(${ms(test.duration)})`); | ||
const duration = chalk_1.default.dim(`(${ms_1.default(test.duration)})`); | ||
const regressionMessage = test.regressionMessage | ||
@@ -133,3 +136,3 @@ ? `\n${this._indent} ${chalk_1.default.magenta(test.regressionMessage)}` | ||
this._printCount('regression', report.regressionCount); | ||
this._printCount('duration', ms(report.duration)); | ||
this._printCount('duration', ms_1.default(report.duration)); | ||
failedGroups.forEach(({ title, failedHooks, failedTests }) => { | ||
@@ -136,0 +139,0 @@ console.log(''); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Contracts_1 = require("../Contracts"); | ||
const Emitter_1 = require("../Emitter"); | ||
const ow_1 = require("ow"); | ||
const ow_1 = __importDefault(require("ow")); | ||
class Runner { | ||
@@ -7,0 +10,0 @@ constructor(_groups, _options) { |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ow_1 = require("ow"); | ||
const chalk_1 = require("chalk"); | ||
const ow_1 = __importDefault(require("ow")); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const Runner_1 = require("../Runner"); | ||
const Group_1 = require("../Group"); | ||
const Assert_1 = require("../Assert"); | ||
const list_1 = require("../Reporter/list"); | ||
const list_1 = __importDefault(require("../Reporter/list")); | ||
const Loader_1 = require("./Loader"); | ||
@@ -10,0 +13,0 @@ const Emitter_1 = require("../Emitter"); |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,3 +21,3 @@ class Loader { | ||
} | ||
const fg = await Promise.resolve().then(() => require('fast-glob')); | ||
const fg = await Promise.resolve().then(() => __importStar(require('fast-glob'))); | ||
let filesPaths = await fg.default(this._glob, { | ||
@@ -17,0 +24,0 @@ absolute: true, |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ow_1 = require("ow"); | ||
const time_span_1 = require("time-span"); | ||
const retry = require("retry"); | ||
const isCI = require("is-ci"); | ||
const ow_1 = __importDefault(require("ow")); | ||
const time_span_1 = __importDefault(require("time-span")); | ||
const retry = __importStar(require("retry")); | ||
const isCI = __importStar(require("is-ci")); | ||
const Callable_1 = require("../Callable"); | ||
@@ -8,0 +18,0 @@ const Emitter_1 = require("../Emitter"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const time_span_1 = require("time-span"); | ||
const time_span_1 = __importDefault(require("time-span")); | ||
const Contracts_1 = require("../Contracts"); | ||
const exceptions = require("../Exceptions"); | ||
const exceptions = __importStar(require("../Exceptions")); | ||
class TestsStore { | ||
@@ -7,0 +17,0 @@ constructor() { |
{ | ||
"name": "japa", | ||
"version": "2.0.10", | ||
"version": "3.0.0", | ||
"description": "Lean test runner for Node.js", | ||
@@ -18,9 +18,9 @@ "main": "build/index.js", | ||
"commit": "git-cz", | ||
"prepublishOnly": "npm run build && pkg-ok", | ||
"test:win": "nyc mocha -r ts-node/register test/*.spec.ts", | ||
"test:win": "mocha -r ts-node/register test/*.spec.ts", | ||
"clean": "del build", | ||
"compile": "npm run lint && npm run clean && tsc", | ||
"build": "npm run compile && node bin/postBuild.js", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"lint": "tslint --project tsconfig.json" | ||
"build": "npm run compile && typedoc && node bin/postBuild.js", | ||
"lint": "tslint --project tsconfig.json", | ||
"release": "np", | ||
"version": "npm run build" | ||
}, | ||
@@ -41,32 +41,29 @@ "repository": { | ||
"debug": "^4.1.1", | ||
"fast-glob": "^2.2.6", | ||
"fast-glob": "^3.0.4", | ||
"is-ci": "^2.0.0", | ||
"ms": "^2.1.1", | ||
"ow": "^0.12.0", | ||
"ms": "^2.1.2", | ||
"ow": "^0.13.2", | ||
"retry": "^0.12.0", | ||
"right-pad": "^1.0.1", | ||
"time-span": "^3.0.0", | ||
"time-span": "^3.1.0", | ||
"variable-diff": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@adonisjs/mrm-preset": "^1.0.16", | ||
"@types/chai": "^4.1.7", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.11.6", | ||
"commitizen": "^3.0.7", | ||
"coveralls": "^3.0.3", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"del-cli": "^1.1.0", | ||
"@adonisjs/mrm-preset": "^2.0.3", | ||
"@types/chai": "^4.2.0", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.2", | ||
"commitizen": "^4.0.3", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"del-cli": "^2.0.0", | ||
"doctoc": "^1.4.0", | ||
"mocha": "^6.0.2", | ||
"mrm": "^1.2.1", | ||
"nyc": "^13.3.0", | ||
"pkg-ok": "^2.3.1", | ||
"ts-node": "^8.0.3", | ||
"tslint": "^5.14.0", | ||
"mocha": "^6.2.0", | ||
"mrm": "^1.2.2", | ||
"np": "^5.0.3", | ||
"ts-node": "^8.3.0", | ||
"tslint": "^5.19.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typedoc": "^0.14.2", | ||
"typedoc-plugin-external-module-name": "^2.0.0", | ||
"typedoc-plugin-single-line-tags": "^1.0.0", | ||
"typescript": "^3.3.4000", | ||
"typedoc": "^0.15.0", | ||
"typedoc-plugin-external-module-name": "^2.1.0", | ||
"typescript": "^3.5.3", | ||
"yorkie": "^2.0.0" | ||
@@ -98,3 +95,7 @@ }, | ||
"pre-commit": "doctoc README.md --title='## Table of contents' && git add README.md" | ||
}, | ||
"np": { | ||
"contents": ".", | ||
"anyBranch": false | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111648
18
2442
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedow@0.13.2(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtype-fest@0.5.2(transitive)
- Removed@mrmlnc/readdir-enhanced@2.2.1(transitive)
- Removed@nodelib/fs.stat@1.1.3(transitive)
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbraces@2.3.2(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedcall-me-maybe@1.0.2(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfast-glob@2.2.7(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-value@2.0.6(transitive)
- Removedglob-parent@3.1.0(transitive)
- Removedglob-to-regexp@0.3.0(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-glob@3.1.0(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedms@2.0.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedow@0.12.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedset-value@2.0.1(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
Updatedfast-glob@^3.0.4
Updatedms@^2.1.2
Updatedow@^0.13.2
Updatedtime-span@^3.1.0