@systemfsoftware/stryker-js-vitest-runner 8.1.0 → 10.1.0

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.
@@ -1,5 +1,5 @@
1
1
  import { afterAll, afterEach, beforeAll, beforeEach, inject } from "vitest";
2
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Pipeable.js
2
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Pipeable.js
3
3
  /**
4
4
  * The `Pipeable` module defines the shared interface and implementation helpers
5
5
  * for values that support Effect-style method chaining with `.pipe(...)`.
@@ -10,6 +10,7 @@ import { afterAll, afterEach, beforeAll, beforeEach, inject } from "vitest";
10
10
  * to compose transformations, validations, and effectful operations while
11
11
  * keeping the original value as the starting point of the pipeline.
12
12
  *
13
+ * @stability stable
13
14
  * @since 2.0.0
14
15
  */
15
16
  /**
@@ -47,6 +48,7 @@ import { afterAll, afterEach, beforeAll, beforeEach, inject } from "vitest";
47
48
  * result // => 21
48
49
  * ```
49
50
  *
51
+ * @stability stable
50
52
  * @category combinators
51
53
  * @since 2.0.0
52
54
  */
@@ -70,7 +72,7 @@ const pipeArguments = (self, args) => {
70
72
  }
71
73
  };
72
74
  //#endregion
73
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Function.js
75
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Function.js
74
76
  /**
75
77
  * Creates a function that can be called in data-first style or data-last
76
78
  * (`pipe`-friendly) style.
@@ -131,6 +133,7 @@ const pipeArguments = (self, args) => {
131
133
  * pipe(2, sum(3)) // => 5
132
134
  * ```
133
135
  *
136
+ * @stability stable
134
137
  * @category combinators
135
138
  * @since 2.0.0
136
139
  */
@@ -177,12 +180,13 @@ const dual = function(arity, body) {
177
180
  * identity(5) // => 5
178
181
  * ```
179
182
  *
183
+ * @stability stable
180
184
  * @category combinators
181
185
  * @since 2.0.0
182
186
  */
183
187
  const identity = (a) => a;
184
188
  //#endregion
185
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/equal.js
189
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/equal.js
186
190
  /** @internal */
187
191
  const getAllObjectKeys = (obj) => {
188
192
  const keys = new Set(Reflect.ownKeys(obj));
@@ -202,8 +206,22 @@ const getAllObjectKeys = (obj) => {
202
206
  const byReferenceInstances = /*#__PURE__*/ new WeakSet();
203
207
  /** @internal */
204
208
  const viewBytes = (view) => new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
209
+ /** @internal */
210
+ const isArrayBufferLike = (u) => u instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && u instanceof SharedArrayBuffer;
211
+ /**
212
+ * Returns `undefined` for detached buffers, which can no longer be read.
213
+ *
214
+ * @internal
215
+ */
216
+ const bufferBytes = (buffer) => {
217
+ try {
218
+ return new Uint8Array(buffer);
219
+ } catch {
220
+ return;
221
+ }
222
+ };
205
223
  //#endregion
206
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/hash.js
224
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/hash.js
207
225
  /**
208
226
  * Back-edge count used to avoid caching entry-point-dependent hashes.
209
227
  *
@@ -215,7 +233,7 @@ const addBackEdge = () => {
215
233
  backEdges++;
216
234
  };
217
235
  //#endregion
218
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Predicate.js
236
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Predicate.js
219
237
  /**
220
238
  * Defines runtime checks for values.
221
239
  *
@@ -225,6 +243,7 @@ const addBackEdge = () => {
225
243
  * property and tag checks, tuple and struct checks, boolean combinators, and
226
244
  * helpers for composing predicates and refinements.
227
245
  *
246
+ * @stability stable
228
247
  * @since 2.0.0
229
248
  */
230
249
  /**
@@ -252,6 +271,7 @@ const addBackEdge = () => {
252
271
  * ```
253
272
  *
254
273
  * @see {@link isObjectKeyword}
274
+ * @stability stable
255
275
  * @category guards
256
276
  * @since 2.0.0
257
277
  */
@@ -281,6 +301,7 @@ function isFunction(input) {
281
301
  *
282
302
  * @see {@link isObject}
283
303
  * @see {@link isObjectOrArray}
304
+ * @stability stable
284
305
  * @category guards
285
306
  * @since 4.0.0
286
307
  */
@@ -315,12 +336,13 @@ function isObjectKeyword(input) {
315
336
  *
316
337
  * @see {@link isTagged}
317
338
  * @see {@link isObjectKeyword}
339
+ * @stability stable
318
340
  * @category guards
319
341
  * @since 2.0.0
320
342
  */
321
343
  const hasProperty = /*#__PURE__*/ dual(2, (self, property) => isObjectKeyword(self) && property in self);
322
344
  //#endregion
323
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Hash.js
345
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Hash.js
324
346
  /**
325
347
  * Computes Effect hash values and defines the interface for objects that want
326
348
  * to provide their own hash implementation. Hashes are small numeric
@@ -330,6 +352,7 @@ const hasProperty = /*#__PURE__*/ dual(2, (self, property) => isObjectKeyword(se
330
352
  * reference-based hashes, plus functions for combining and optimizing numeric
331
353
  * hash values.
332
354
  *
355
+ * @stability stable
333
356
  * @since 2.0.0
334
357
  */
335
358
  /**
@@ -344,6 +367,7 @@ const hasProperty = /*#__PURE__*/ dual(2, (self, property) => isObjectKeyword(se
344
367
  * @see {@link isHash} for checking whether a value implements `Hash`
345
368
  * @see {@link hash} for computing hash values
346
369
  *
370
+ * @stability stable
347
371
  * @category symbols
348
372
  * @since 2.0.0
349
373
  */
@@ -380,6 +404,7 @@ const symbol$1 = "~effect/Hash";
380
404
  * Hash.hash([1, 2, 3]) === Hash.hash([1, 2, 3]) // => true
381
405
  * ```
382
406
  *
407
+ * @stability stable
383
408
  * @category hashing
384
409
  * @since 2.0.0
385
410
  */
@@ -406,9 +431,12 @@ const hash = (self) => {
406
431
  const seen = backEdges;
407
432
  let h;
408
433
  try {
409
- if ("~effect/Hash" in self) h = self[symbol$1]();
434
+ if (isHash(self)) h = self[symbol$1]();
410
435
  else if (typeof self === "function") h = random(self);
411
- else if (self instanceof DataView) h = array(viewBytes(self));
436
+ else if (isArrayBufferLike(self)) {
437
+ const bytes = bufferBytes(self);
438
+ h = bytes === void 0 ? random(self) : array(bytes);
439
+ } else if (self instanceof DataView) h = array(viewBytes(self));
412
440
  else if (Array.isArray(self) || ArrayBuffer.isView(self)) h = array(self);
413
441
  else if (self instanceof Map) h = hashMap(self);
414
442
  else if (self instanceof Set) h = hashSet(self);
@@ -448,6 +476,7 @@ const hash = (self) => {
448
476
  * typeof Hash.random(obj2) // => "number"
449
477
  * ```
450
478
  *
479
+ * @stability stable
451
480
  * @category hashing
452
481
  * @since 2.0.0
453
482
  */
@@ -489,6 +518,7 @@ const mix = (h) => {
489
518
  * @see {@link hash} for computing hash values from arbitrary inputs
490
519
  * @see {@link structureKeys} for hashing selected object fields without manual combination
491
520
  *
521
+ * @stability stable
492
522
  * @category hashing
493
523
  * @since 2.0.0
494
524
  */
@@ -513,10 +543,45 @@ const combine = /*#__PURE__*/ dual(2, (self, b) => mix(Math.imul(self, 265443576
513
543
  * Hash.optimize(1234567890) // => 160826066
514
544
  * ```
515
545
  *
546
+ * @stability stable
516
547
  * @category hashing
517
548
  * @since 2.0.0
518
549
  */
519
550
  const optimize = (n) => n & 3221225471 | n >>> 1 & 1073741824;
551
+ /**
552
+ * Checks whether a value implements the Hash interface.
553
+ *
554
+ * **When to use**
555
+ *
556
+ * Use to detect whether an unknown value provides a custom hash implementation.
557
+ *
558
+ * **Details**
559
+ *
560
+ * This function determines whether a given value has a function under the Hash
561
+ * symbol, indicating that it can provide its own hash value implementation.
562
+ * Data that merely carries the key, such as parsed JSON, is hashed as data.
563
+ *
564
+ * **Example** (Checking for Hash support)
565
+ *
566
+ * ```ts import.meta.vitest
567
+ * import { Hash } from "effect"
568
+ *
569
+ * class MyHashable implements Hash.Hash {
570
+ * [Hash.symbol]() {
571
+ * return 42
572
+ * }
573
+ * }
574
+ *
575
+ * Hash.isHash(new MyHashable()) // => true
576
+ * Hash.isHash({}) // => false
577
+ * Hash.isHash("string") // => false
578
+ * ```
579
+ *
580
+ * @stability stable
581
+ * @category guards
582
+ * @since 2.0.0
583
+ */
584
+ const isHash = (u) => hasProperty(u, "~effect/Hash") && typeof u["~effect/Hash"] === "function";
520
585
  const float64 = /*#__PURE__*/ new DataView(/*#__PURE__*/ new ArrayBuffer(8));
521
586
  /**
522
587
  * Computes a hash value for a number.
@@ -542,6 +607,7 @@ const float64 = /*#__PURE__*/ new DataView(/*#__PURE__*/ new ArrayBuffer(8));
542
607
  * Hash.number(100) === Hash.number(100) // => true
543
608
  * ```
544
609
  *
610
+ * @stability stable
545
611
  * @category hashing
546
612
  * @since 2.0.0
547
613
  */
@@ -576,6 +642,7 @@ const number = (n) => {
576
642
  * Hash.string("test") === Hash.string("test") // => true
577
643
  * ```
578
644
  *
645
+ * @stability stable
579
646
  * @category hashing
580
647
  * @since 2.0.0
581
648
  */
@@ -615,6 +682,7 @@ const string = (str) => {
615
682
  * hash1 === hash3 // => true
616
683
  * ```
617
684
  *
685
+ * @stability stable
618
686
  * @category hashing
619
687
  * @since 2.0.0
620
688
  */
@@ -650,6 +718,7 @@ const structureKeys = (o, keys) => {
650
718
  * Hash.structure(obj1) === Hash.structure(obj3) // => true
651
719
  * ```
652
720
  *
721
+ * @stability stable
653
722
  * @category hashing
654
723
  * @since 2.0.0
655
724
  */
@@ -690,6 +759,7 @@ const unordered = (seed, f) => (iter) => {
690
759
  *
691
760
  * @see {@link hash} for the general-purpose hash dispatcher
692
761
  *
762
+ * @stability stable
693
763
  * @category hashing
694
764
  * @since 2.0.0
695
765
  */
@@ -705,7 +775,7 @@ const randomHashCache = /*#__PURE__*/ new WeakMap();
705
775
  const hashCache = /*#__PURE__*/ new WeakMap();
706
776
  const visitedObjects = /*#__PURE__*/ new WeakSet();
707
777
  //#endregion
708
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Equal.js
778
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Equal.js
709
779
  /**
710
780
  * Defines the unique string identifier for the `Equal` interface.
711
781
  *
@@ -741,6 +811,7 @@ const visitedObjects = /*#__PURE__*/ new WeakSet();
741
811
  *
742
812
  * @see {@link Equal} — the interface that uses this symbol
743
813
  * @see {@link isEqual} — type guard for `Equal` implementors
814
+ * @stability stable
744
815
  * @category symbols
745
816
  * @since 2.0.0
746
817
  */
@@ -796,6 +867,11 @@ function compareStructure(self, that) {
796
867
  else if (Array.isArray(self)) {
797
868
  if (!Array.isArray(that) || self.length !== that.length) return false;
798
869
  return compareArrays(self, that);
870
+ } else if (isArrayBufferLike(self)) {
871
+ if (!isArrayBufferLike(that) || self instanceof ArrayBuffer !== that instanceof ArrayBuffer) return false;
872
+ const selfBytes = bufferBytes(self);
873
+ const thatBytes = bufferBytes(that);
874
+ return selfBytes !== void 0 && thatBytes !== void 0 && compareTypedArrays(selfBytes, thatBytes);
799
875
  } else if (ArrayBuffer.isView(self)) {
800
876
  const selfIsDataView = self instanceof DataView;
801
877
  if (!ArrayBuffer.isView(that) || self.byteLength !== that.byteLength || selfIsDataView !== that instanceof DataView) return false;
@@ -828,11 +904,13 @@ function compareRecords(self, that) {
828
904
  }
829
905
  function compareHashed(self, that, hashOf, equivalent) {
830
906
  const groups = /* @__PURE__ */ new Map();
907
+ let remaining = 0;
831
908
  for (const item of that) {
832
909
  const h = hashOf(item);
833
910
  const group = groups.get(h);
834
911
  if (group) group.push(item);
835
912
  else groups.set(h, [item]);
913
+ remaining++;
836
914
  }
837
915
  outer: for (const item of self) {
838
916
  const group = groups.get(hashOf(item));
@@ -840,12 +918,13 @@ function compareHashed(self, that, hashOf, equivalent) {
840
918
  for (let i = 0; i < group.length; i++) if (equivalent(item, group[i])) {
841
919
  group[i] = group[group.length - 1];
842
920
  group.pop();
921
+ remaining--;
843
922
  continue outer;
844
923
  }
845
924
  }
846
925
  return false;
847
926
  }
848
- return true;
927
+ return remaining === 0;
849
928
  }
850
929
  const entryHash = (entry) => hash(entry[0]);
851
930
  const equalEntries = (self, that) => compareBoth(self[0], that[0]) && compareBoth(self[1], that[1]);
@@ -860,8 +939,8 @@ const equalEntries = (self, that) => compareBoth(self[0], that[0]) && compareBot
860
939
  * **Details**
861
940
  *
862
941
  * - Pure function, no side effects.
863
- * - Returns `true` if and only if `u` has a property keyed by
864
- * {@link symbol}.
942
+ * - Returns `true` if and only if `u` has a function keyed by {@link symbol}.
943
+ * Data that merely carries the key, such as parsed JSON, is not `Equal`.
865
944
  * - Acts as a TypeScript type guard, narrowing the input to {@link Equal}.
866
945
  *
867
946
  * **Example** (Checking Equal values)
@@ -886,12 +965,13 @@ const equalEntries = (self, that) => compareBoth(self[0], that[0]) && compareBot
886
965
  *
887
966
  * @see {@link Equal} — the interface being checked
888
967
  * @see {@link symbol} — the property key that signals `Equal` support
968
+ * @stability stable
889
969
  * @category guards
890
970
  * @since 2.0.0
891
971
  */
892
- const isEqual = (u) => hasProperty(u, symbol);
972
+ const isEqual = (u) => hasProperty(u, "~effect/Equal") && typeof u["~effect/Equal"] === "function";
893
973
  //#endregion
894
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Redactable.js
974
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Redactable.js
895
975
  /**
896
976
  * Defines the symbol used to identify objects that implement the {@link Redactable}
897
977
  * protocol.
@@ -925,6 +1005,7 @@ const isEqual = (u) => hasProperty(u, symbol);
925
1005
  *
926
1006
  * @see {@link Redactable} for the interface this symbol belongs to
927
1007
  * @see {@link isRedactable} to check whether a value has this symbol
1008
+ * @stability stable
928
1009
  * @category symbols
929
1010
  * @since 3.10.0
930
1011
  */
@@ -939,6 +1020,7 @@ const symbolRedactable = /*#__PURE__*/ Symbol.for("~effect/Redactable");
939
1020
  *
940
1021
  * @see {@link Redactable} for the interface being checked
941
1022
  * @see {@link redact} to apply redaction if the value is redactable
1023
+ * @stability stable
942
1024
  * @category guards
943
1025
  * @since 3.10.0
944
1026
  */
@@ -964,6 +1046,7 @@ const isRedactable = (u) => hasProperty(u, symbolRedactable);
964
1046
  *
965
1047
  * @see {@link isRedactable} to check before redacting
966
1048
  * @see {@link getRedacted} for the lower-level variant for known redactables
1049
+ * @stability stable
967
1050
  * @category destructors
968
1051
  * @since 3.10.0
969
1052
  */
@@ -991,6 +1074,7 @@ function redact(u) {
991
1074
  *
992
1075
  * @see {@link redact} for the higher-level variant that handles non-redactable values
993
1076
  * @see {@link isRedactable} for the type guard to verify before calling this
1077
+ * @stability stable
994
1078
  * @category destructors
995
1079
  * @since 4.0.0
996
1080
  */
@@ -1008,7 +1092,7 @@ const emptyContext = {
1008
1092
  }
1009
1093
  };
1010
1094
  //#endregion
1011
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Formatter.js
1095
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Formatter.js
1012
1096
  /**
1013
1097
  * Formats JavaScript values into readable strings.
1014
1098
  *
@@ -1018,6 +1102,7 @@ const emptyContext = {
1018
1102
  * wraps JSON formatting with redaction and circular-reference handling, and the
1019
1103
  * module also includes helpers for property keys, paths, and dates.
1020
1104
  *
1105
+ * @stability stable
1021
1106
  * @since 4.0.0
1022
1107
  */
1023
1108
  /**
@@ -1080,6 +1165,7 @@ const emptyContext = {
1080
1165
  *
1081
1166
  * @see {@link formatJson}
1082
1167
  * @see {@link Formatter}
1168
+ * @stability stable
1083
1169
  * @category formatting
1084
1170
  * @since 2.0.0
1085
1171
  */
@@ -1175,7 +1261,7 @@ function safeGet(input, key) {
1175
1261
  }
1176
1262
  }
1177
1263
  //#endregion
1178
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Inspectable.js
1264
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Inspectable.js
1179
1265
  /**
1180
1266
  * Defines the symbol used by Node.js for custom object inspection.
1181
1267
  *
@@ -1206,6 +1292,7 @@ function safeGet(input, key) {
1206
1292
  * obj[Inspectable.NodeInspectSymbol]() // => "CustomObject(hello)"
1207
1293
  * ```
1208
1294
  *
1295
+ * @stability stable
1209
1296
  * @category symbols
1210
1297
  * @since 2.0.0
1211
1298
  */
@@ -1228,6 +1315,7 @@ const NodeInspectSymbol = /*#__PURE__*/ Symbol.for("nodejs.util.inspect.custom")
1228
1315
  *
1229
1316
  * @see {@link toStringUnknown} for converting unknown values to strings
1230
1317
  *
1318
+ * @stability stable
1231
1319
  * @category converting
1232
1320
  * @since 4.0.0
1233
1321
  */
@@ -1242,7 +1330,7 @@ const toJson = (input) => {
1242
1330
  }
1243
1331
  };
1244
1332
  //#endregion
1245
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Utils.js
1333
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Utils.js
1246
1334
  /**
1247
1335
  * Yields its wrapped value exactly once, then completes with the value sent
1248
1336
  * back in.
@@ -1274,6 +1362,7 @@ const toJson = (input) => {
1274
1362
  * ```
1275
1363
  *
1276
1364
  * @see {@link Gen} for the type-level signature that relies on `SingleShotGen`
1365
+ * @stability stable
1277
1366
  * @category constructors
1278
1367
  * @since 2.0.0
1279
1368
  */
@@ -1305,7 +1394,7 @@ var SingleShotGen = class {
1305
1394
  }
1306
1395
  };
1307
1396
  //#endregion
1308
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/core.js
1397
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/core.js
1309
1398
  /** @internal */
1310
1399
  const EffectTypeId = `~effect/Effect`;
1311
1400
  `${EffectTypeId}`;
@@ -1334,7 +1423,7 @@ const PipeInspectableProto = {
1334
1423
  };
1335
1424
  ({ ...PipeInspectableProto });
1336
1425
  //#endregion
1337
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/result.js
1426
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/result.js
1338
1427
  const TypeId$1 = "~effect/Result";
1339
1428
  const CommonProto = {
1340
1429
  [TypeId$1]: {
@@ -1408,7 +1497,7 @@ SuccessImpl.prototype = SuccessProto;
1408
1497
  /** @internal */
1409
1498
  const succeed$1 = (success) => new SuccessImpl(success);
1410
1499
  //#endregion
1411
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Result.js
1500
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Result.js
1412
1501
  /**
1413
1502
  * Creates a `Result` holding a `Success` value.
1414
1503
  *
@@ -1428,6 +1517,7 @@ const succeed$1 = (success) => new SuccessImpl(success);
1428
1517
  * @see {@link fail} to create a Failure
1429
1518
  * @see {@link void_ void} for a pre-built `Success<void>`
1430
1519
  *
1520
+ * @stability stable
1431
1521
  * @category constructors
1432
1522
  * @since 4.0.0
1433
1523
  */
@@ -1454,6 +1544,7 @@ const succeed = succeed$1;
1454
1544
  * @see {@link succeed} to create a Success
1455
1545
  * @see {@link mapError} to transform the error
1456
1546
  *
1547
+ * @stability stable
1457
1548
  * @category constructors
1458
1549
  * @since 4.0.0
1459
1550
  */
@@ -1482,6 +1573,7 @@ const fail = fail$1;
1482
1573
  *
1483
1574
  * @see {@link isSuccess} / {@link isFailure} to narrow to a specific variant
1484
1575
  *
1576
+ * @stability stable
1485
1577
  * @category guards
1486
1578
  * @since 4.0.0
1487
1579
  */
@@ -1513,6 +1605,7 @@ const isResult = isResult$1;
1513
1605
  * @see {@link isFailure} for the opposite check
1514
1606
  * @see {@link isResult} to check if a value is any Result
1515
1607
  *
1608
+ * @stability stable
1516
1609
  * @category guards
1517
1610
  * @since 4.0.0
1518
1611
  */
@@ -1553,7 +1646,7 @@ const makePredicate = (pattern) => {
1553
1646
  const predicates = pattern.map(makePredicate);
1554
1647
  const len = predicates.length;
1555
1648
  return (u) => {
1556
- if (!Array.isArray(u)) return false;
1649
+ if (!Array.isArray(u) || u.length < len) return false;
1557
1650
  for (let i = 0; i < len; i++) if (predicates[i](u[i]) === false) return false;
1558
1651
  return true;
1559
1652
  };
@@ -1608,7 +1701,7 @@ const result = (self) => {
1608
1701
  };
1609
1702
  };
1610
1703
  //#endregion
1611
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Match.js
1704
+ //#region ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Match.js
1612
1705
  /**
1613
1706
  * Builds pattern matchers for TypeScript values.
1614
1707
  *
@@ -1619,6 +1712,7 @@ const result = (self) => {
1619
1712
  * patterns, and common checks such as strings, numbers, records, and class
1620
1713
  * instances.
1621
1714
  *
1715
+ * @stability stable
1622
1716
  * @since 4.0.0
1623
1717
  */
1624
1718
  /**
@@ -1661,6 +1755,7 @@ const result = (self) => {
1661
1755
  *
1662
1756
  * @see {@link type} for creating a matcher from a specific type.
1663
1757
  *
1758
+ * @stability stable
1664
1759
  * @category constructors
1665
1760
  * @since 4.0.0
1666
1761
  */
@@ -1710,6 +1805,7 @@ const value = value$1;
1710
1805
  * @see {@link not} for handling inputs that do not match a pattern
1711
1806
  * @see {@link orElse} for providing a fallback when no pattern case matches
1712
1807
  *
1808
+ * @stability stable
1713
1809
  * @category defining patterns
1714
1810
  * @since 4.0.0
1715
1811
  */
@@ -1750,6 +1846,7 @@ const when = when$1;
1750
1846
  * @see {@link result} for returning unmatched input as a `Result` failure
1751
1847
  * @see {@link orElseAbsurd} for finalizing when unmatched input should be impossible
1752
1848
  *
1849
+ * @stability stable
1753
1850
  * @category completion
1754
1851
  * @since 4.0.0
1755
1852
  */
@@ -1761,6 +1858,13 @@ const mutantActivation = inject("mutantActivation");
1761
1858
  const mode = inject("mode");
1762
1859
  const ns = globalThis[globalNamespace] ?? (globalThis[globalNamespace] = {});
1763
1860
  ns.hitLimit = inject("hitLimit");
1861
+ const evaluatedModuleKeysOf = () => {
1862
+ const workerState = Reflect.get(globalThis, "__vitest_worker__");
1863
+ if (typeof workerState !== "object" || workerState === null) return void 0;
1864
+ const info = "moduleExecutionInfo" in workerState ? workerState.moduleExecutionInfo : void 0;
1865
+ if (!(info instanceof Map)) return void 0;
1866
+ return [...info.keys()].filter((key) => typeof key === "string" && !key.startsWith("node:"));
1867
+ };
1764
1868
  const registerMutantRunHooks = () => {
1765
1869
  beforeAll(() => {
1766
1870
  ns.hitCount = 0;
@@ -1784,6 +1888,8 @@ const registerDryRunHooks = () => {
1784
1888
  });
1785
1889
  afterAll(({}, suite) => {
1786
1890
  suite.meta.mutantCoverage = ns.mutantCoverage;
1891
+ const evaluatedModules = evaluatedModuleKeysOf();
1892
+ if (evaluatedModules !== void 0) suite.meta.testFileModules = evaluatedModules;
1787
1893
  });
1788
1894
  };
1789
1895
  value(mode).pipe(when("mutant", registerMutantRunHooks), orElse(registerDryRunHooks));
@@ -0,0 +1 @@
1
+ export {}