@flemist/test-variants 5.0.3 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/build/browser/index.cjs +1 -1
- package/build/browser/index.mjs +1 -1
- package/build/common/index.cjs +1 -1
- package/build/common/index.mjs +1 -1
- package/build/common/test-variants/run/types.d.ts +2 -0
- package/build/common/test-variants/types.d.ts +2 -0
- package/build/{createTestVariants-BaW2oQ-k.mjs → createTestVariants-BXmWQaT8.mjs} +366 -373
- package/build/createTestVariants-BYmqvvhv.js +4 -0
- package/build/node/index.cjs +1 -1
- package/build/node/index.mjs +1 -1
- package/package.json +35 -32
- package/build/createTestVariants-LuHR6HJQ.js +0 -4
package/README.md
CHANGED
|
@@ -248,6 +248,10 @@ const result = await testVariants({
|
|
|
248
248
|
tests, // number of tests run before this mode change
|
|
249
249
|
}) => void | Promise<void>,
|
|
250
250
|
|
|
251
|
+
// Pause debugger on error; requires IDE "step into library" enabled
|
|
252
|
+
// Repeats failing variant up to 5 times in debug mode
|
|
253
|
+
pauseDebuggerOnError: boolean | null, // default: true
|
|
254
|
+
|
|
251
255
|
// Time controller for all internal delays, timeouts and getting current time
|
|
252
256
|
// Used inside testVariants instead of direct setTimeout, Date.now calls, etc
|
|
253
257
|
// Intended only for testing and debugging the test-variants library itself
|
package/build/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-BYmqvvhv.js");exports.createTestVariants=e.createTestVariants;
|
package/build/browser/index.mjs
CHANGED
package/build/common/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-BYmqvvhv.js");exports.createTestVariants=e.createTestVariants;
|
package/build/common/index.mjs
CHANGED
|
@@ -52,6 +52,8 @@ export type TestVariantsCreateTestRunOptions<Args extends Obj> = {
|
|
|
52
52
|
onError?: null | OnErrorCallback<Args>;
|
|
53
53
|
/** Resolved logging options */
|
|
54
54
|
log: RequiredNonNullable<TestVariantsLogOptions>;
|
|
55
|
+
/** Pause debugger on error */
|
|
56
|
+
pauseDebuggerOnError?: null | boolean;
|
|
55
57
|
};
|
|
56
58
|
export type TestVariantsCall<Args extends Obj> = <SavedArgs = Args>(options?: null | TestVariantsRunOptionsInternal<Args, SavedArgs>) => PromiseOrValue<TestVariantsResult<Args>>;
|
|
57
59
|
export type TestVariantsSetArgs<Args extends Obj> = <ArgsExtra extends Obj>(args: TestVariantsTemplatesExt<Omit<Args, 'seed'>, Omit<ArgsExtra, 'seed'>>) => TestVariantsCall<Args>;
|
|
@@ -158,6 +158,8 @@ export type TestVariantsRunOptions<Args extends Obj = Obj, SavedArgs = Args> = {
|
|
|
158
158
|
onError?: null | OnErrorCallback<Args>;
|
|
159
159
|
/** Callback invoked when iteration mode changes */
|
|
160
160
|
onModeChange?: null | OnModeChangeCallback;
|
|
161
|
+
/** Pause debugger on error */
|
|
162
|
+
pauseDebuggerOnError?: null | boolean;
|
|
161
163
|
/** Wait for garbage collection after iterations */
|
|
162
164
|
GC_Iterations?: null | number;
|
|
163
165
|
/** Same as GC_Iterations but only for async test variants, required for 10000 and more of Promise rejections */
|