@haibun/core
Advanced tools
Comparing version 1.9.3 to 1.9.5
@@ -20,2 +20,5 @@ import { TSpecl, TResult, TWorld, TFeature, TExtraOptions, TEndFeatureCallback, CStepper } from './defs'; | ||
}; | ||
export declare const DEF_PROTO_DEFAULT_OPTIONS: { | ||
DEST: string; | ||
}; | ||
export declare const DEF_PROTO_OPTIONS: { | ||
@@ -22,0 +25,0 @@ options: { |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.runWith = exports.DEF_PROTO_OPTIONS = exports.run = void 0; | ||
exports.runWith = exports.DEF_PROTO_OPTIONS = exports.DEF_PROTO_DEFAULT_OPTIONS = exports.run = void 0; | ||
const fs_1 = require("fs"); | ||
@@ -31,3 +31,4 @@ const defs_1 = require("./defs"); | ||
exports.run = run; | ||
exports.DEF_PROTO_OPTIONS = { options: { DEST: defs_1.DEFAULT_DEST }, extraOptions: {} }; | ||
exports.DEF_PROTO_DEFAULT_OPTIONS = { DEST: defs_1.DEFAULT_DEST }; | ||
exports.DEF_PROTO_OPTIONS = { options: exports.DEF_PROTO_DEFAULT_OPTIONS, extraOptions: {} }; | ||
async function runWith({ specl, world, features, backgrounds, addSteppers, endFeatureCallback }) { | ||
@@ -34,0 +35,0 @@ const { tag } = world; |
@@ -14,3 +14,3 @@ import { TWorld, TVStep, TProtoOptions, CStepper, TExpandedFeature } from '../defs'; | ||
}[]; | ||
export declare function testWithDefaults(inFeatures: TTestFeatures, addSteppers: CStepper[], protoOptions?: TProtoOptions, inBackgrounds?: TTestFeatures): Promise<import("../defs").TResult>; | ||
export declare function testWithDefaults(featuresIn: TTestFeatures | string, addSteppers: CStepper[], protoOptions?: TProtoOptions, inBackgrounds?: TTestFeatures): Promise<import("../defs").TResult>; | ||
export declare function getTestWorldWithOptions(protoOptions: TProtoOptions): TWorld; | ||
@@ -17,0 +17,0 @@ export declare const asFeatures: (w: { |
@@ -59,3 +59,4 @@ "use strict"; | ||
exports.getTestEnv = getTestEnv; | ||
async function testWithDefaults(inFeatures, addSteppers, protoOptions = run_1.DEF_PROTO_OPTIONS, inBackgrounds = []) { | ||
async function testWithDefaults(featuresIn, addSteppers, protoOptions = run_1.DEF_PROTO_OPTIONS, inBackgrounds = []) { | ||
const inFeatures = (typeof featuresIn == 'string') ? [{ path: '/features/test', content: featuresIn }] : featuresIn; | ||
const specl = (0, util_1.getDefaultOptions)(); | ||
@@ -62,0 +63,0 @@ const world = getTestWorldWithOptions(protoOptions); |
{ | ||
"name": "@haibun/core", | ||
"version": "1.9.3", | ||
"version": "1.9.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
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
273035
3627