@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 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
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-LuHR6HJQ.js");exports.createTestVariants=e.createTestVariants;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-BYmqvvhv.js");exports.createTestVariants=e.createTestVariants;
@@ -1,4 +1,4 @@
1
- import { c as r } from "../createTestVariants-BaW2oQ-k.mjs";
1
+ import { c as r } from "../createTestVariants-BXmWQaT8.mjs";
2
2
  export {
3
3
  r as createTestVariants
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-LuHR6HJQ.js");exports.createTestVariants=e.createTestVariants;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../createTestVariants-BYmqvvhv.js");exports.createTestVariants=e.createTestVariants;
@@ -1,4 +1,4 @@
1
- import { c as r } from "../createTestVariants-BaW2oQ-k.mjs";
1
+ import { c as r } from "../createTestVariants-BXmWQaT8.mjs";
2
2
  export {
3
3
  r as createTestVariants
4
4
  };
@@ -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 */