@tapjs/before
Advanced tools
Comparing version 0.0.0-3 to 0.0.0-4
@@ -0,2 +1,11 @@ | ||
/** | ||
* Plugin class providing {@link Before#before} on the | ||
* {@link Test} class. | ||
* | ||
* @module | ||
*/ | ||
import { TapPlugin, TestBase } from '@tapjs/core'; | ||
/** | ||
* Implementation class returned by plugin function | ||
*/ | ||
export declare class Before { | ||
@@ -6,3 +15,5 @@ #private; | ||
/** | ||
* Just run the supplied function right away. | ||
* Just run the supplied function right away, but do not run any | ||
* child tests until it has completed. | ||
* | ||
* This is handy when some setup may require asynchronous actions, and | ||
@@ -13,3 +24,6 @@ * tests should wait until after it completes. | ||
} | ||
/** | ||
* Plugin method that creates the {@link Before} instance | ||
*/ | ||
export declare const plugin: TapPlugin<Before>; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
/** | ||
* Plugin class providing {@link Before#before} on the | ||
* {@link Test} class. | ||
* | ||
* @module | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.plugin = exports.Before = void 0; | ||
const is_actual_promise_1 = require("is-actual-promise"); | ||
/** | ||
* Implementation class returned by plugin function | ||
*/ | ||
class Before { | ||
@@ -11,3 +20,5 @@ #t; | ||
/** | ||
* Just run the supplied function right away. | ||
* Just run the supplied function right away, but do not run any | ||
* child tests until it has completed. | ||
* | ||
* This is handy when some setup may require asynchronous actions, and | ||
@@ -46,4 +57,7 @@ * tests should wait until after it completes. | ||
exports.Before = Before; | ||
/** | ||
* Plugin method that creates the {@link Before} instance | ||
*/ | ||
const plugin = (t) => new Before(t); | ||
exports.plugin = plugin; | ||
//# sourceMappingURL=index.js.map |
@@ -0,2 +1,11 @@ | ||
/** | ||
* Plugin class providing {@link Before#before} on the | ||
* {@link Test} class. | ||
* | ||
* @module | ||
*/ | ||
import { TapPlugin, TestBase } from '@tapjs/core'; | ||
/** | ||
* Implementation class returned by plugin function | ||
*/ | ||
export declare class Before { | ||
@@ -6,3 +15,5 @@ #private; | ||
/** | ||
* Just run the supplied function right away. | ||
* Just run the supplied function right away, but do not run any | ||
* child tests until it has completed. | ||
* | ||
* This is handy when some setup may require asynchronous actions, and | ||
@@ -13,3 +24,6 @@ * tests should wait until after it completes. | ||
} | ||
/** | ||
* Plugin method that creates the {@link Before} instance | ||
*/ | ||
export declare const plugin: TapPlugin<Before>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,2 +1,11 @@ | ||
/** | ||
* Plugin class providing {@link Before#before} on the | ||
* {@link Test} class. | ||
* | ||
* @module | ||
*/ | ||
import { isPromise } from 'is-actual-promise'; | ||
/** | ||
* Implementation class returned by plugin function | ||
*/ | ||
export class Before { | ||
@@ -8,3 +17,5 @@ #t; | ||
/** | ||
* Just run the supplied function right away. | ||
* Just run the supplied function right away, but do not run any | ||
* child tests until it has completed. | ||
* | ||
* This is handy when some setup may require asynchronous actions, and | ||
@@ -42,3 +53,6 @@ * tests should wait until after it completes. | ||
} | ||
/** | ||
* Plugin method that creates the {@link Before} instance | ||
*/ | ||
export const plugin = (t) => new Before(t); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tapjs/before", | ||
"version": "0.0.0-3", | ||
"version": "0.0.0-4", | ||
"description": "a built-in tap extension for t.before()", | ||
@@ -47,3 +47,3 @@ "main": "./dist/cjs/index.js", | ||
"peerDependencies": { | ||
"@tapjs/core": "0.0.0-3" | ||
"@tapjs/core": "0.0.0-4" | ||
}, | ||
@@ -50,0 +50,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
14736
167