Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

japa

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

japa - npm Package Compare versions

Comparing version 2.0.10 to 3.0.0

5

build/api.js
"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;

7

build/src/Callable/index.js
"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
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc