@rstest/core 0.9.1 → 0.9.3
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/LICENSE.md +1 -1
- package/dist/{0~89.js → 0~8843.js} +24 -28
- package/dist/{0~1472.js → 0~browserLoader.js} +11 -11
- package/dist/{0~7882.js → 0~browser~1.js} +60 -61
- package/dist/{0~8426.js → 0~checkThresholds.js} +6 -6
- package/dist/{0~7583.js → 0~chokidar.js} +113 -72
- package/dist/{0~130.js → 0~console.js} +19 -20
- package/dist/{0~9744.js → 0~dist.js} +57 -57
- package/dist/{0~4403.js → 0~generate.js} +9 -6
- package/dist/{0~4809.js → 0~happyDom.js} +2 -2
- package/dist/{0~3346.js → 0~interop.js} +0 -1
- package/dist/{0~62.js → 0~jsdom.js} +2 -2
- package/dist/{0~262.js → 0~lib.js} +4 -1
- package/dist/{0~9634.js → 0~listTests.js} +15 -24
- package/dist/{0~6923.js → 0~loadEsModule.js} +7 -7
- package/dist/{0~5835.js → 0~loadModule.js} +11 -11
- package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
- package/dist/0~mergeReports.js +127 -0
- package/dist/{0~2255.js → 0~plugin.js} +2 -4
- package/dist/{0~6588.js → 0~restart.js} +8 -12
- package/dist/{0~2173.js → 0~runTests.js} +51 -60
- package/dist/{487.js → 1255.js} +22 -15
- package/dist/{6151.js → 1949.js} +41 -25
- package/dist/{6973.js → 255.js} +9 -10
- package/dist/{9131.js → 3145.js} +229 -479
- package/dist/{1157.js → 4411.js} +37 -37
- package/dist/{4484.js → 5040.js} +1 -2
- package/dist/{3160.js → 6830.js} +429 -106
- package/dist/7011.js +1 -1
- package/dist/{1294.js → 7552.js} +106 -83
- package/dist/{5734.js → 7704.js} +7 -6
- package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
- package/dist/browser-runtime/{389.js → 723.js} +178 -134
- package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
- package/dist/browser-runtime/index.d.ts +40 -5
- package/dist/browser-runtime/index.js +1 -1
- package/dist/browser-runtime/rslib-runtime.js +11 -3
- package/dist/browser.d.ts +40 -5
- package/dist/browser.js +9 -7
- package/dist/globalSetupWorker.js +7 -14
- package/dist/index.d.ts +53 -6
- package/dist/index.js +2 -2
- package/dist/rslib-runtime.js +5 -8
- package/dist/worker.d.ts +30 -3
- package/dist/worker.js +20 -46
- package/package.json +19 -18
- package/dist/3160.js.LICENSE.txt +0 -21
- package/dist/4881.js +0 -2
- package/dist/6198.js +0 -2
- /package/dist/{0~7583.js.LICENSE.txt → 0~chokidar.js.LICENSE.txt} +0 -0
- /package/dist/{0~3062.js → 0~utils.js} +0 -0
- /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
- /package/dist/{4597.js → 1983.js} +0 -0
- /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*! LICENSE: 723.js.LICENSE.txt */
|
|
2
2
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
|
-
"../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
4
|
+
"../../node_modules/.pnpm/@jest+diff-sequences@30.3.0/node_modules/@jest/diff-sequences/build/index.js" (module) {
|
|
5
5
|
/*!
|
|
6
6
|
* /**
|
|
7
7
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -542,7 +542,7 @@ __webpack_require__.add({
|
|
|
542
542
|
}
|
|
543
543
|
module.exports = valueToString;
|
|
544
544
|
},
|
|
545
|
-
"../../node_modules/.pnpm/@sinonjs+fake-timers@15.1.
|
|
545
|
+
"../../node_modules/.pnpm/@sinonjs+fake-timers@15.1.1/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
546
546
|
const globalObject = __webpack_require__("../../node_modules/.pnpm/@sinonjs+commons@3.0.1/node_modules/@sinonjs/commons/lib/index.js").global;
|
|
547
547
|
let timersModule, timersPromisesModule;
|
|
548
548
|
try {
|
|
@@ -1655,9 +1655,9 @@ __webpack_require__.add({
|
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
1657
|
const defaultImplementation = withGlobal(globalObject);
|
|
1658
|
-
defaultImplementation.timers;
|
|
1659
|
-
defaultImplementation.createClock;
|
|
1660
|
-
defaultImplementation.install;
|
|
1658
|
+
exports.timers = defaultImplementation.timers;
|
|
1659
|
+
exports.createClock = defaultImplementation.createClock;
|
|
1660
|
+
exports.install = defaultImplementation.install;
|
|
1661
1661
|
exports.withGlobal = withGlobal;
|
|
1662
1662
|
},
|
|
1663
1663
|
"../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
@@ -1914,8 +1914,7 @@ __webpack_require__.add({
|
|
|
1914
1914
|
get: assembleStyles
|
|
1915
1915
|
});
|
|
1916
1916
|
},
|
|
1917
|
-
"../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js" (module,
|
|
1918
|
-
__webpack_require__.r(exports);
|
|
1917
|
+
"../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1919
1918
|
module = __webpack_require__.nmd(module);
|
|
1920
1919
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
1921
1920
|
const wrapAnsi256 = (offset = 0)=>(code)=>`\u001B[${38 + offset};5;${code}m`;
|
|
@@ -3693,7 +3692,7 @@ __webpack_require__.add({
|
|
|
3693
3692
|
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
3694
3693
|
endIndex = index + substringLength;
|
|
3695
3694
|
index = string.indexOf(substring, endIndex);
|
|
3696
|
-
}while (-1 !== index)
|
|
3695
|
+
}while (-1 !== index)
|
|
3697
3696
|
returnValue += string.substr(endIndex);
|
|
3698
3697
|
return returnValue;
|
|
3699
3698
|
};
|
|
@@ -3705,7 +3704,7 @@ __webpack_require__.add({
|
|
|
3705
3704
|
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
|
|
3706
3705
|
endIndex = index + 1;
|
|
3707
3706
|
index = string.indexOf('\n', endIndex);
|
|
3708
|
-
}while (-1 !== index)
|
|
3707
|
+
}while (-1 !== index)
|
|
3709
3708
|
returnValue += string.substr(endIndex);
|
|
3710
3709
|
return returnValue;
|
|
3711
3710
|
};
|
|
@@ -6365,7 +6364,7 @@ __webpack_require__.add({
|
|
|
6365
6364
|
return !!whichTypedArray(value);
|
|
6366
6365
|
};
|
|
6367
6366
|
},
|
|
6368
|
-
"../../node_modules/.pnpm/jest-diff@30.
|
|
6367
|
+
"../../node_modules/.pnpm/jest-diff@30.3.0/node_modules/jest-diff/build/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
6369
6368
|
/*!
|
|
6370
6369
|
* /**
|
|
6371
6370
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -6376,7 +6375,7 @@ __webpack_require__.add({
|
|
|
6376
6375
|
*/ (()=>{
|
|
6377
6376
|
"use strict";
|
|
6378
6377
|
var __webpack_modules__ = {
|
|
6379
|
-
"./src/cleanupSemantic.ts"
|
|
6378
|
+
"./src/cleanupSemantic.ts" (__unused_webpack_module, exports) {
|
|
6380
6379
|
Object.defineProperty(exports, "__esModule", {
|
|
6381
6380
|
value: true
|
|
6382
6381
|
});
|
|
@@ -6664,7 +6663,7 @@ __webpack_require__.add({
|
|
|
6664
6663
|
if (changes) diff_cleanupMerge(diffs);
|
|
6665
6664
|
};
|
|
6666
6665
|
},
|
|
6667
|
-
"./src/constants.ts"
|
|
6666
|
+
"./src/constants.ts" (__unused_webpack_module, exports) {
|
|
6668
6667
|
Object.defineProperty(exports, "__esModule", {
|
|
6669
6668
|
value: true
|
|
6670
6669
|
});
|
|
@@ -6672,16 +6671,16 @@ __webpack_require__.add({
|
|
|
6672
6671
|
exports.NO_DIFF_MESSAGE = 'Compared values have no visual difference.';
|
|
6673
6672
|
exports.SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";
|
|
6674
6673
|
},
|
|
6675
|
-
"./src/diffLines.ts"
|
|
6674
|
+
"./src/diffLines.ts" (__unused_webpack_module, exports, __nested_rspack_require_20509_20528__) {
|
|
6676
6675
|
Object.defineProperty(exports, "__esModule", {
|
|
6677
6676
|
value: true
|
|
6678
6677
|
});
|
|
6679
6678
|
exports.printDiffLines = exports.diffLinesUnified2 = exports.diffLinesUnified = exports.diffLinesRaw = void 0;
|
|
6680
|
-
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
6681
|
-
var _cleanupSemantic =
|
|
6682
|
-
var _escapeControlCharacters =
|
|
6683
|
-
var _joinAlignedDiffs =
|
|
6684
|
-
var _normalizeDiffOptions =
|
|
6679
|
+
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.3.0/node_modules/@jest/diff-sequences/build/index.js"));
|
|
6680
|
+
var _cleanupSemantic = __nested_rspack_require_20509_20528__("./src/cleanupSemantic.ts");
|
|
6681
|
+
var _escapeControlCharacters = __nested_rspack_require_20509_20528__("./src/escapeControlCharacters.ts");
|
|
6682
|
+
var _joinAlignedDiffs = __nested_rspack_require_20509_20528__("./src/joinAlignedDiffs.ts");
|
|
6683
|
+
var _normalizeDiffOptions = __nested_rspack_require_20509_20528__("./src/normalizeDiffOptions.ts");
|
|
6685
6684
|
function _interopRequireDefault(e) {
|
|
6686
6685
|
return e && e.__esModule ? e : {
|
|
6687
6686
|
default: e
|
|
@@ -6777,13 +6776,13 @@ __webpack_require__.add({
|
|
|
6777
6776
|
};
|
|
6778
6777
|
exports.diffLinesRaw = diffLinesRaw;
|
|
6779
6778
|
},
|
|
6780
|
-
"./src/diffStrings.ts"
|
|
6779
|
+
"./src/diffStrings.ts" (__unused_webpack_module, exports, __nested_rspack_require_26485_26504__) {
|
|
6781
6780
|
Object.defineProperty(exports, "__esModule", {
|
|
6782
6781
|
value: true
|
|
6783
6782
|
});
|
|
6784
6783
|
exports["default"] = void 0;
|
|
6785
|
-
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
6786
|
-
var _cleanupSemantic =
|
|
6784
|
+
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.3.0/node_modules/@jest/diff-sequences/build/index.js"));
|
|
6785
|
+
var _cleanupSemantic = __nested_rspack_require_26485_26504__("./src/cleanupSemantic.ts");
|
|
6787
6786
|
function _interopRequireDefault(e) {
|
|
6788
6787
|
return e && e.__esModule ? e : {
|
|
6789
6788
|
default: e
|
|
@@ -6808,7 +6807,7 @@ __webpack_require__.add({
|
|
|
6808
6807
|
};
|
|
6809
6808
|
exports["default"] = diffStrings;
|
|
6810
6809
|
},
|
|
6811
|
-
"./src/escapeControlCharacters.ts"
|
|
6810
|
+
"./src/escapeControlCharacters.ts" (__unused_webpack_module, exports) {
|
|
6812
6811
|
Object.defineProperty(exports, "__esModule", {
|
|
6813
6812
|
value: true
|
|
6814
6813
|
});
|
|
@@ -6830,12 +6829,12 @@ __webpack_require__.add({
|
|
|
6830
6829
|
});
|
|
6831
6830
|
exports.escapeControlCharacters = escapeControlCharacters;
|
|
6832
6831
|
},
|
|
6833
|
-
"./src/getAlignedDiffs.ts"
|
|
6832
|
+
"./src/getAlignedDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_29203_29222__) {
|
|
6834
6833
|
Object.defineProperty(exports, "__esModule", {
|
|
6835
6834
|
value: true
|
|
6836
6835
|
});
|
|
6837
6836
|
exports["default"] = void 0;
|
|
6838
|
-
var _cleanupSemantic =
|
|
6837
|
+
var _cleanupSemantic = __nested_rspack_require_29203_29222__("./src/cleanupSemantic.ts");
|
|
6839
6838
|
const concatenateRelevantDiffs = (op, diffs, changeColor)=>diffs.reduce((reduced, diff)=>reduced + (diff[0] === _cleanupSemantic.DIFF_EQUAL ? diff[1] : diff[0] === op && diff[1].length > 0 ? changeColor(diff[1]) : ''), '');
|
|
6840
6839
|
class ChangeBuffer {
|
|
6841
6840
|
op;
|
|
@@ -6941,12 +6940,12 @@ __webpack_require__.add({
|
|
|
6941
6940
|
};
|
|
6942
6941
|
exports["default"] = getAlignedDiffs;
|
|
6943
6942
|
},
|
|
6944
|
-
"./src/joinAlignedDiffs.ts"
|
|
6943
|
+
"./src/joinAlignedDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_36061_36080__) {
|
|
6945
6944
|
Object.defineProperty(exports, "__esModule", {
|
|
6946
6945
|
value: true
|
|
6947
6946
|
});
|
|
6948
6947
|
exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0;
|
|
6949
|
-
var _cleanupSemantic =
|
|
6948
|
+
var _cleanupSemantic = __nested_rspack_require_36061_36080__("./src/cleanupSemantic.ts");
|
|
6950
6949
|
const formatTrailingSpaces = (line, trailingSpaceFormatter)=>line.replace(/\s+$/, (match)=>trailingSpaceFormatter(match));
|
|
6951
6950
|
const printDiffLine = (line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder)=>0 === line.length ? ' ' === indicator ? isFirstOrLast && emptyFirstOrLastLinePlaceholder.length > 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : '' : color(indicator) : color(`${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`);
|
|
6952
6951
|
const printDeleteLine = (line, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder })=>printDiffLine(line, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
|
|
@@ -7070,7 +7069,7 @@ __webpack_require__.add({
|
|
|
7070
7069
|
}).join('\n');
|
|
7071
7070
|
exports.joinAlignedDiffsExpand = joinAlignedDiffsExpand;
|
|
7072
7071
|
},
|
|
7073
|
-
"./src/normalizeDiffOptions.ts"
|
|
7072
|
+
"./src/normalizeDiffOptions.ts" (__unused_webpack_module, exports) {
|
|
7074
7073
|
Object.defineProperty(exports, "__esModule", {
|
|
7075
7074
|
value: true
|
|
7076
7075
|
});
|
|
@@ -7114,16 +7113,16 @@ __webpack_require__.add({
|
|
|
7114
7113
|
});
|
|
7115
7114
|
exports.normalizeDiffOptions = normalizeDiffOptions;
|
|
7116
7115
|
},
|
|
7117
|
-
"./src/printDiffs.ts"
|
|
7116
|
+
"./src/printDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_45432_45451__) {
|
|
7118
7117
|
Object.defineProperty(exports, "__esModule", {
|
|
7119
7118
|
value: true
|
|
7120
7119
|
});
|
|
7121
7120
|
exports.diffStringsUnified = exports.diffStringsRaw = void 0;
|
|
7122
|
-
var _cleanupSemantic =
|
|
7123
|
-
var _diffLines =
|
|
7124
|
-
var _diffStrings = _interopRequireDefault(
|
|
7125
|
-
var _getAlignedDiffs = _interopRequireDefault(
|
|
7126
|
-
var _normalizeDiffOptions =
|
|
7121
|
+
var _cleanupSemantic = __nested_rspack_require_45432_45451__("./src/cleanupSemantic.ts");
|
|
7122
|
+
var _diffLines = __nested_rspack_require_45432_45451__("./src/diffLines.ts");
|
|
7123
|
+
var _diffStrings = _interopRequireDefault(__nested_rspack_require_45432_45451__("./src/diffStrings.ts"));
|
|
7124
|
+
var _getAlignedDiffs = _interopRequireDefault(__nested_rspack_require_45432_45451__("./src/getAlignedDiffs.ts"));
|
|
7125
|
+
var _normalizeDiffOptions = __nested_rspack_require_45432_45451__("./src/normalizeDiffOptions.ts");
|
|
7127
7126
|
function _interopRequireDefault(e) {
|
|
7128
7127
|
return e && e.__esModule ? e : {
|
|
7129
7128
|
default: e
|
|
@@ -7158,13 +7157,13 @@ __webpack_require__.add({
|
|
|
7158
7157
|
}
|
|
7159
7158
|
};
|
|
7160
7159
|
var __webpack_module_cache__ = {};
|
|
7161
|
-
function
|
|
7160
|
+
function __nested_rspack_require_48187__(moduleId) {
|
|
7162
7161
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
7163
7162
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
7164
7163
|
var module = __webpack_module_cache__[moduleId] = {
|
|
7165
7164
|
exports: {}
|
|
7166
7165
|
};
|
|
7167
|
-
__webpack_modules__[moduleId](module, module.exports,
|
|
7166
|
+
__webpack_modules__[moduleId](module, module.exports, __nested_rspack_require_48187__);
|
|
7168
7167
|
return module.exports;
|
|
7169
7168
|
}
|
|
7170
7169
|
var __nested_rspack_exports__ = {};
|
|
@@ -7230,13 +7229,13 @@ __webpack_require__.add({
|
|
|
7230
7229
|
});
|
|
7231
7230
|
var _chalk = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"));
|
|
7232
7231
|
var _getType = __webpack_require__("../../node_modules/.pnpm/@jest+get-type@30.1.0/node_modules/@jest/get-type/build/index.js");
|
|
7233
|
-
var _prettyFormat = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.
|
|
7234
|
-
var _cleanupSemantic =
|
|
7235
|
-
var _constants =
|
|
7236
|
-
var _diffLines =
|
|
7237
|
-
var _escapeControlCharacters =
|
|
7238
|
-
var _normalizeDiffOptions =
|
|
7239
|
-
var _printDiffs =
|
|
7232
|
+
var _prettyFormat = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js");
|
|
7233
|
+
var _cleanupSemantic = __nested_rspack_require_48187__("./src/cleanupSemantic.ts");
|
|
7234
|
+
var _constants = __nested_rspack_require_48187__("./src/constants.ts");
|
|
7235
|
+
var _diffLines = __nested_rspack_require_48187__("./src/diffLines.ts");
|
|
7236
|
+
var _escapeControlCharacters = __nested_rspack_require_48187__("./src/escapeControlCharacters.ts");
|
|
7237
|
+
var _normalizeDiffOptions = __nested_rspack_require_48187__("./src/normalizeDiffOptions.ts");
|
|
7238
|
+
var _printDiffs = __nested_rspack_require_48187__("./src/printDiffs.ts");
|
|
7240
7239
|
function _interopRequireDefault(e) {
|
|
7241
7240
|
return e && e.__esModule ? e : {
|
|
7242
7241
|
default: e
|
|
@@ -7492,7 +7491,7 @@ __webpack_require__.add({
|
|
|
7492
7491
|
'BigUint64Array'
|
|
7493
7492
|
];
|
|
7494
7493
|
},
|
|
7495
|
-
"../../node_modules/.pnpm/pretty-format@30.
|
|
7494
|
+
"../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
7496
7495
|
/*!
|
|
7497
7496
|
* /**
|
|
7498
7497
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7503,7 +7502,7 @@ __webpack_require__.add({
|
|
|
7503
7502
|
*/ (()=>{
|
|
7504
7503
|
"use strict";
|
|
7505
7504
|
var __webpack_modules__ = {
|
|
7506
|
-
"./src/collections.ts"
|
|
7505
|
+
"./src/collections.ts" (__unused_webpack_module, exports) {
|
|
7507
7506
|
Object.defineProperty(exports, "__esModule", {
|
|
7508
7507
|
value: true
|
|
7509
7508
|
});
|
|
@@ -7608,14 +7607,14 @@ __webpack_require__.add({
|
|
|
7608
7607
|
return result;
|
|
7609
7608
|
}
|
|
7610
7609
|
},
|
|
7611
|
-
"./src/plugins/AsymmetricMatcher.ts"
|
|
7610
|
+
"./src/plugins/AsymmetricMatcher.ts" (__unused_webpack_module, exports, __nested_rspack_require_5486_5505__) {
|
|
7612
7611
|
Object.defineProperty(exports, "__esModule", {
|
|
7613
7612
|
value: true
|
|
7614
7613
|
});
|
|
7615
7614
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7616
|
-
var _collections =
|
|
7615
|
+
var _collections = __nested_rspack_require_5486_5505__("./src/collections.ts");
|
|
7617
7616
|
var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
7618
|
-
const asymmetricMatcher = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('jest.asymmetricMatcher') :
|
|
7617
|
+
const asymmetricMatcher = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('jest.asymmetricMatcher') : 0x13_57_a5;
|
|
7619
7618
|
const SPACE = ' ';
|
|
7620
7619
|
const serialize = (val, config, indentation, depth, refs, printer)=>{
|
|
7621
7620
|
const stringedValue = val.toString();
|
|
@@ -7645,12 +7644,12 @@ __webpack_require__.add({
|
|
|
7645
7644
|
};
|
|
7646
7645
|
exports["default"] = plugin;
|
|
7647
7646
|
},
|
|
7648
|
-
"./src/plugins/DOMCollection.ts"
|
|
7647
|
+
"./src/plugins/DOMCollection.ts" (__unused_webpack_module, exports, __nested_rspack_require_7938_7957__) {
|
|
7649
7648
|
Object.defineProperty(exports, "__esModule", {
|
|
7650
7649
|
value: true
|
|
7651
7650
|
});
|
|
7652
7651
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7653
|
-
var _collections =
|
|
7652
|
+
var _collections = __nested_rspack_require_7938_7957__("./src/collections.ts");
|
|
7654
7653
|
const SPACE = ' ';
|
|
7655
7654
|
const OBJECT_NAMES = new Set([
|
|
7656
7655
|
'DOMStringMap',
|
|
@@ -7682,12 +7681,12 @@ __webpack_require__.add({
|
|
|
7682
7681
|
};
|
|
7683
7682
|
exports["default"] = plugin;
|
|
7684
7683
|
},
|
|
7685
|
-
"./src/plugins/DOMElement.ts"
|
|
7684
|
+
"./src/plugins/DOMElement.ts" (__unused_webpack_module, exports, __nested_rspack_require_9600_9619__) {
|
|
7686
7685
|
Object.defineProperty(exports, "__esModule", {
|
|
7687
7686
|
value: true
|
|
7688
7687
|
});
|
|
7689
7688
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7690
|
-
var _markup =
|
|
7689
|
+
var _markup = __nested_rspack_require_9600_9619__("./src/plugins/lib/markup.ts");
|
|
7691
7690
|
const ELEMENT_NODE = 1;
|
|
7692
7691
|
const TEXT_NODE = 3;
|
|
7693
7692
|
const COMMENT_NODE = 8;
|
|
@@ -7739,12 +7738,12 @@ __webpack_require__.add({
|
|
|
7739
7738
|
};
|
|
7740
7739
|
exports["default"] = plugin;
|
|
7741
7740
|
},
|
|
7742
|
-
"./src/plugins/Immutable.ts"
|
|
7741
|
+
"./src/plugins/Immutable.ts" (__unused_webpack_module, exports, __nested_rspack_require_12365_12384__) {
|
|
7743
7742
|
Object.defineProperty(exports, "__esModule", {
|
|
7744
7743
|
value: true
|
|
7745
7744
|
});
|
|
7746
7745
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7747
|
-
var _collections =
|
|
7746
|
+
var _collections = __nested_rspack_require_12365_12384__("./src/collections.ts");
|
|
7748
7747
|
const IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
|
|
7749
7748
|
const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
|
|
7750
7749
|
const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
|
|
@@ -7808,13 +7807,13 @@ __webpack_require__.add({
|
|
|
7808
7807
|
};
|
|
7809
7808
|
exports["default"] = plugin;
|
|
7810
7809
|
},
|
|
7811
|
-
"./src/plugins/ReactElement.ts"
|
|
7810
|
+
"./src/plugins/ReactElement.ts" (__unused_webpack_module, exports, __nested_rspack_require_17259_17278__) {
|
|
7812
7811
|
Object.defineProperty(exports, "__esModule", {
|
|
7813
7812
|
value: true
|
|
7814
7813
|
});
|
|
7815
7814
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7816
7815
|
var ReactIs = _interopRequireWildcard(__webpack_require__("../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js"));
|
|
7817
|
-
var _markup =
|
|
7816
|
+
var _markup = __nested_rspack_require_17259_17278__("./src/plugins/lib/markup.ts");
|
|
7818
7817
|
function _interopRequireWildcard(e, t) {
|
|
7819
7818
|
if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap();
|
|
7820
7819
|
return (_interopRequireWildcard = function(e, t) {
|
|
@@ -7872,14 +7871,14 @@ __webpack_require__.add({
|
|
|
7872
7871
|
};
|
|
7873
7872
|
exports["default"] = plugin;
|
|
7874
7873
|
},
|
|
7875
|
-
"./src/plugins/ReactTestComponent.ts"
|
|
7874
|
+
"./src/plugins/ReactTestComponent.ts" (__unused_webpack_module, exports, __nested_rspack_require_20720_20739__) {
|
|
7876
7875
|
Object.defineProperty(exports, "__esModule", {
|
|
7877
7876
|
value: true
|
|
7878
7877
|
});
|
|
7879
7878
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7880
|
-
var _markup =
|
|
7879
|
+
var _markup = __nested_rspack_require_20720_20739__("./src/plugins/lib/markup.ts");
|
|
7881
7880
|
var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
7882
|
-
const testSymbol = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('react.test.json') :
|
|
7881
|
+
const testSymbol = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('react.test.json') : 0xe_a7_13_57;
|
|
7883
7882
|
const getPropKeys = (object)=>{
|
|
7884
7883
|
const { props } = object;
|
|
7885
7884
|
return props ? Object.keys(props).filter((key)=>void 0 !== props[key]).sort() : [];
|
|
@@ -7894,7 +7893,7 @@ __webpack_require__.add({
|
|
|
7894
7893
|
};
|
|
7895
7894
|
exports["default"] = plugin;
|
|
7896
7895
|
},
|
|
7897
|
-
"./src/plugins/lib/escapeHTML.ts"
|
|
7896
|
+
"./src/plugins/lib/escapeHTML.ts" (__unused_webpack_module, exports) {
|
|
7898
7897
|
Object.defineProperty(exports, "__esModule", {
|
|
7899
7898
|
value: true
|
|
7900
7899
|
});
|
|
@@ -7903,12 +7902,12 @@ __webpack_require__.add({
|
|
|
7903
7902
|
return str.replaceAll('<', '<').replaceAll('>', '>');
|
|
7904
7903
|
}
|
|
7905
7904
|
},
|
|
7906
|
-
"./src/plugins/lib/markup.ts"
|
|
7905
|
+
"./src/plugins/lib/markup.ts" (__unused_webpack_module, exports, __nested_rspack_require_22778_22797__) {
|
|
7907
7906
|
Object.defineProperty(exports, "__esModule", {
|
|
7908
7907
|
value: true
|
|
7909
7908
|
});
|
|
7910
7909
|
exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
|
|
7911
|
-
var _escapeHTML = _interopRequireDefault(
|
|
7910
|
+
var _escapeHTML = _interopRequireDefault(__nested_rspack_require_22778_22797__("./src/plugins/lib/escapeHTML.ts"));
|
|
7912
7911
|
function _interopRequireDefault(e) {
|
|
7913
7912
|
return e && e.__esModule ? e : {
|
|
7914
7913
|
default: e
|
|
@@ -7953,13 +7952,13 @@ __webpack_require__.add({
|
|
|
7953
7952
|
}
|
|
7954
7953
|
};
|
|
7955
7954
|
var __webpack_module_cache__ = {};
|
|
7956
|
-
function
|
|
7955
|
+
function __nested_rspack_require_26126__(moduleId) {
|
|
7957
7956
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
7958
7957
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
7959
7958
|
var module = __webpack_module_cache__[moduleId] = {
|
|
7960
7959
|
exports: {}
|
|
7961
7960
|
};
|
|
7962
|
-
__webpack_modules__[moduleId](module, module.exports,
|
|
7961
|
+
__webpack_modules__[moduleId](module, module.exports, __nested_rspack_require_26126__);
|
|
7963
7962
|
return module.exports;
|
|
7964
7963
|
}
|
|
7965
7964
|
var __nested_rspack_exports__ = {};
|
|
@@ -7972,13 +7971,13 @@ __webpack_require__.add({
|
|
|
7972
7971
|
exports.format = format;
|
|
7973
7972
|
exports.plugins = void 0;
|
|
7974
7973
|
var _ansiStyles = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js"));
|
|
7975
|
-
var _collections =
|
|
7976
|
-
var _AsymmetricMatcher = _interopRequireDefault(
|
|
7977
|
-
var _DOMCollection = _interopRequireDefault(
|
|
7978
|
-
var _DOMElement = _interopRequireDefault(
|
|
7979
|
-
var _Immutable = _interopRequireDefault(
|
|
7980
|
-
var _ReactElement = _interopRequireDefault(
|
|
7981
|
-
var _ReactTestComponent = _interopRequireDefault(
|
|
7974
|
+
var _collections = __nested_rspack_require_26126__("./src/collections.ts");
|
|
7975
|
+
var _AsymmetricMatcher = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/AsymmetricMatcher.ts"));
|
|
7976
|
+
var _DOMCollection = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/DOMCollection.ts"));
|
|
7977
|
+
var _DOMElement = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/DOMElement.ts"));
|
|
7978
|
+
var _Immutable = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/Immutable.ts"));
|
|
7979
|
+
var _ReactElement = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/ReactElement.ts"));
|
|
7980
|
+
var _ReactTestComponent = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/ReactTestComponent.ts"));
|
|
7982
7981
|
function _interopRequireDefault(e) {
|
|
7983
7982
|
return e && e.__esModule ? e : {
|
|
7984
7983
|
default: e
|
|
@@ -9815,7 +9814,7 @@ function chunk_BVHSVHOK_p(n = !1) {
|
|
|
9815
9814
|
let e = chunk_BVHSVHOK_C(n), i = (r, t, c, o)=>{
|
|
9816
9815
|
let l = "", s = 0;
|
|
9817
9816
|
do l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
|
|
9818
|
-
while (~o)
|
|
9817
|
+
while (~o)
|
|
9819
9818
|
return l + r.substring(s);
|
|
9820
9819
|
}, g = (r, t, c = r)=>{
|
|
9821
9820
|
let o = (l)=>{
|
|
@@ -17877,25 +17876,41 @@ const JestExtend = (chai, utils)=>{
|
|
|
17877
17876
|
use(JestExtendPlugin(chai, expect, expects));
|
|
17878
17877
|
});
|
|
17879
17878
|
};
|
|
17880
|
-
const
|
|
17881
|
-
const
|
|
17882
|
-
const
|
|
17879
|
+
const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
17880
|
+
const process_browser = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
17881
|
+
const browser = __webpack_require__("../../node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js");
|
|
17883
17882
|
const tty_browserify = __webpack_require__("../../node_modules/.pnpm/tty-browserify@0.0.1/node_modules/tty-browserify/index.js");
|
|
17884
|
-
|
|
17885
|
-
|
|
17886
|
-
const
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
const
|
|
17892
|
-
|
|
17883
|
+
var rslog_dist_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
17884
|
+
function checkNodeVersion() {
|
|
17885
|
+
const { versions } = rslog_dist_process;
|
|
17886
|
+
if ("styleText" in util_util || !versions.node || versions.bun || versions.deno) return;
|
|
17887
|
+
throw new Error(`Unsupported Node.js version: "${rslog_dist_process.versions.node || 'unknown'}". Expected Node.js >= 20.`);
|
|
17888
|
+
}
|
|
17889
|
+
checkNodeVersion();
|
|
17890
|
+
const createStyler = (style)=>(text)=>util_util.styleText(style, String(text));
|
|
17891
|
+
const dist_color = {
|
|
17892
|
+
dim: createStyler('dim'),
|
|
17893
|
+
red: createStyler('red'),
|
|
17894
|
+
bold: createStyler('bold'),
|
|
17895
|
+
blue: createStyler('blue'),
|
|
17896
|
+
cyan: createStyler('cyan'),
|
|
17897
|
+
gray: createStyler('gray'),
|
|
17898
|
+
black: createStyler('black'),
|
|
17899
|
+
green: createStyler('green'),
|
|
17900
|
+
white: createStyler('white'),
|
|
17901
|
+
reset: createStyler('reset'),
|
|
17902
|
+
yellow: createStyler('yellow'),
|
|
17903
|
+
magenta: createStyler('magenta'),
|
|
17904
|
+
underline: createStyler('underline'),
|
|
17905
|
+
strikethrough: createStyler('strikethrough')
|
|
17906
|
+
};
|
|
17907
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process_browser.argv) {
|
|
17893
17908
|
const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
|
|
17894
17909
|
const position = argv.indexOf(prefix + flag);
|
|
17895
17910
|
const terminatorPosition = argv.indexOf('--');
|
|
17896
17911
|
return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
|
|
17897
17912
|
}
|
|
17898
|
-
const { env: env } =
|
|
17913
|
+
const { env: env } = process_browser;
|
|
17899
17914
|
let flagForceColor;
|
|
17900
17915
|
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
|
|
17901
17916
|
else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) flagForceColor = 1;
|
|
@@ -17935,8 +17950,8 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
17935
17950
|
if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
|
|
17936
17951
|
const min = forceColor || 0;
|
|
17937
17952
|
if ('dumb' === env.TERM) return min;
|
|
17938
|
-
if ('win32' ===
|
|
17939
|
-
const osRelease =
|
|
17953
|
+
if ('win32' === process_browser.platform) {
|
|
17954
|
+
const osRelease = browser.release().split('.');
|
|
17940
17955
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
17941
17956
|
return 1;
|
|
17942
17957
|
}
|
|
@@ -18007,7 +18022,7 @@ let endColor = [
|
|
|
18007
18022
|
];
|
|
18008
18023
|
let isWord = (char)=>!/[\s\n]/.test(char);
|
|
18009
18024
|
let gradient = (message)=>{
|
|
18010
|
-
if (colorLevel < 3) return 2 === colorLevel ?
|
|
18025
|
+
if (colorLevel < 3) return 2 === colorLevel ? dist_color.cyan(message) : message;
|
|
18011
18026
|
let chars = [
|
|
18012
18027
|
...message
|
|
18013
18028
|
];
|
|
@@ -18027,7 +18042,7 @@ let gradient = (message)=>{
|
|
|
18027
18042
|
}
|
|
18028
18043
|
output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
|
|
18029
18044
|
}
|
|
18030
|
-
return bold(output);
|
|
18045
|
+
return dist_color.bold(output);
|
|
18031
18046
|
};
|
|
18032
18047
|
let LOG_LEVEL = {
|
|
18033
18048
|
silent: -1,
|
|
@@ -18041,32 +18056,32 @@ let LOG_TYPES = {
|
|
|
18041
18056
|
error: {
|
|
18042
18057
|
label: 'error',
|
|
18043
18058
|
level: 'error',
|
|
18044
|
-
color: red
|
|
18059
|
+
color: dist_color.red
|
|
18045
18060
|
},
|
|
18046
18061
|
warn: {
|
|
18047
18062
|
label: 'warn',
|
|
18048
18063
|
level: 'warn',
|
|
18049
|
-
color: yellow
|
|
18064
|
+
color: dist_color.yellow
|
|
18050
18065
|
},
|
|
18051
18066
|
info: {
|
|
18052
18067
|
label: 'info',
|
|
18053
18068
|
level: 'info',
|
|
18054
|
-
color: cyan
|
|
18069
|
+
color: dist_color.cyan
|
|
18055
18070
|
},
|
|
18056
18071
|
start: {
|
|
18057
18072
|
label: 'start',
|
|
18058
18073
|
level: 'info',
|
|
18059
|
-
color: cyan
|
|
18074
|
+
color: dist_color.cyan
|
|
18060
18075
|
},
|
|
18061
18076
|
ready: {
|
|
18062
18077
|
label: 'ready',
|
|
18063
18078
|
level: 'info',
|
|
18064
|
-
color: green
|
|
18079
|
+
color: dist_color.green
|
|
18065
18080
|
},
|
|
18066
18081
|
success: {
|
|
18067
18082
|
label: 'success',
|
|
18068
18083
|
level: 'info',
|
|
18069
|
-
color: green
|
|
18084
|
+
color: dist_color.green
|
|
18070
18085
|
},
|
|
18071
18086
|
log: {
|
|
18072
18087
|
level: 'info'
|
|
@@ -18074,14 +18089,14 @@ let LOG_TYPES = {
|
|
|
18074
18089
|
debug: {
|
|
18075
18090
|
label: 'debug',
|
|
18076
18091
|
level: 'verbose',
|
|
18077
|
-
color: magenta
|
|
18092
|
+
color: dist_color.magenta
|
|
18078
18093
|
}
|
|
18079
18094
|
};
|
|
18080
18095
|
const dist_normalizeErrorMessage = (err)=>{
|
|
18081
18096
|
if (err.stack) {
|
|
18082
18097
|
let [name, ...rest] = err.stack.split('\n');
|
|
18083
18098
|
if (name.startsWith('Error: ')) name = name.slice(7);
|
|
18084
|
-
return `${name}\n${gray(rest.join('\n'))}`;
|
|
18099
|
+
return `${name}\n${dist_color.gray(rest.join('\n'))}`;
|
|
18085
18100
|
}
|
|
18086
18101
|
return err.message;
|
|
18087
18102
|
};
|
|
@@ -18096,18 +18111,18 @@ let createLogger = (options = {})=>{
|
|
|
18096
18111
|
let text = '';
|
|
18097
18112
|
if ('label' in logType) {
|
|
18098
18113
|
label = (logType.label || '').padEnd(7);
|
|
18099
|
-
label = bold(logType.color ? logType.color(label) : label);
|
|
18114
|
+
label = dist_color.bold(logType.color ? logType.color(label) : label);
|
|
18100
18115
|
}
|
|
18101
18116
|
if (message instanceof Error) {
|
|
18102
18117
|
text += dist_normalizeErrorMessage(message);
|
|
18103
18118
|
const { cause } = message;
|
|
18104
18119
|
if (cause) {
|
|
18105
|
-
text += yellow('\n [cause]: ');
|
|
18120
|
+
text += dist_color.yellow('\n [cause]: ');
|
|
18106
18121
|
text += cause instanceof Error ? dist_normalizeErrorMessage(cause) : String(cause);
|
|
18107
18122
|
}
|
|
18108
18123
|
} else if ('error' === level && 'string' == typeof message) {
|
|
18109
18124
|
let lines = message.split('\n');
|
|
18110
|
-
text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join('\n');
|
|
18125
|
+
text = lines.map((line)=>isErrorStackMessage(line) ? dist_color.gray(line) : line).join('\n');
|
|
18111
18126
|
} else text = `${message}`;
|
|
18112
18127
|
const method = 'error' === level || 'warn' === level ? level : 'log';
|
|
18113
18128
|
console[method](label.length ? `${label} ${text}` : text, ...args);
|
|
@@ -21169,22 +21184,22 @@ function chai_use(fn) {
|
|
|
21169
21184
|
return exports;
|
|
21170
21185
|
}
|
|
21171
21186
|
chai_name(chai_use, "use");
|
|
21172
|
-
const
|
|
21173
|
-
|
|
21174
|
-
|
|
21175
|
-
|
|
21176
|
-
|
|
21177
|
-
const build_diff =
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
|
|
21181
|
-
|
|
21182
|
-
|
|
21183
|
-
const
|
|
21184
|
-
|
|
21185
|
-
const build_format =
|
|
21186
|
-
const build_plugins =
|
|
21187
|
-
|
|
21187
|
+
const jest_diff_build = __webpack_require__("../../node_modules/.pnpm/jest-diff@30.3.0/node_modules/jest-diff/build/index.js");
|
|
21188
|
+
jest_diff_build.DIFF_DELETE;
|
|
21189
|
+
jest_diff_build.DIFF_EQUAL;
|
|
21190
|
+
jest_diff_build.DIFF_INSERT;
|
|
21191
|
+
jest_diff_build.Diff;
|
|
21192
|
+
const build_diff = jest_diff_build.diff;
|
|
21193
|
+
jest_diff_build.diffLinesRaw;
|
|
21194
|
+
jest_diff_build.diffLinesUnified;
|
|
21195
|
+
jest_diff_build.diffLinesUnified2;
|
|
21196
|
+
jest_diff_build.diffStringsRaw;
|
|
21197
|
+
jest_diff_build.diffStringsUnified;
|
|
21198
|
+
const pretty_format_build_0 = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js");
|
|
21199
|
+
pretty_format_build_0.DEFAULT_OPTIONS;
|
|
21200
|
+
const build_format = pretty_format_build_0.format;
|
|
21201
|
+
const build_plugins = pretty_format_build_0.plugins;
|
|
21202
|
+
pretty_format_build_0["default"];
|
|
21188
21203
|
__webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
21189
21204
|
const REAL_TIMERS = {};
|
|
21190
21205
|
const setRealTimers = ()=>{
|
|
@@ -21278,6 +21293,23 @@ function util_getValue(source, path, defaultValue) {
|
|
|
21278
21293
|
}
|
|
21279
21294
|
return result;
|
|
21280
21295
|
}
|
|
21296
|
+
function isTemplateStringsArray(value) {
|
|
21297
|
+
return Array.isArray(value) && 'raw' in value && Array.isArray(value.raw);
|
|
21298
|
+
}
|
|
21299
|
+
function parseTemplateTable(strings, ...expressions) {
|
|
21300
|
+
const raw = strings.join('\0');
|
|
21301
|
+
const lines = raw.split('\n').filter((line)=>line.trim());
|
|
21302
|
+
if (0 === lines.length) return [];
|
|
21303
|
+
const headers = lines[0].split('|').map((h)=>h.trim()).filter(Boolean);
|
|
21304
|
+
if (0 === headers.length) return [];
|
|
21305
|
+
const result = [];
|
|
21306
|
+
for(let i = 0; i < expressions.length; i += headers.length){
|
|
21307
|
+
const row = {};
|
|
21308
|
+
for(let j = 0; j < headers.length; j++)row[headers[j]] = expressions[i + j];
|
|
21309
|
+
result.push(row);
|
|
21310
|
+
}
|
|
21311
|
+
return result;
|
|
21312
|
+
}
|
|
21281
21313
|
class TestRegisterError extends Error {
|
|
21282
21314
|
}
|
|
21283
21315
|
const unsupported = [
|
|
@@ -21495,7 +21527,7 @@ function decodeInteger(reader, relative) {
|
|
|
21495
21527
|
integer = charToInt[c];
|
|
21496
21528
|
value |= (31 & integer) << shift;
|
|
21497
21529
|
shift += 5;
|
|
21498
|
-
}while (32 & integer)
|
|
21530
|
+
}while (32 & integer)
|
|
21499
21531
|
const shouldNegate = 1 & value;
|
|
21500
21532
|
value >>>= 1;
|
|
21501
21533
|
if (shouldNegate) value = -2147483648 | -value;
|
|
@@ -21570,7 +21602,7 @@ function decode(mappings) {
|
|
|
21570
21602
|
if (!sorted) sort(line);
|
|
21571
21603
|
decoded.push(line);
|
|
21572
21604
|
reader.pos = semi + 1;
|
|
21573
|
-
}while (reader.pos <= length)
|
|
21605
|
+
}while (reader.pos <= length)
|
|
21574
21606
|
return decoded;
|
|
21575
21607
|
}
|
|
21576
21608
|
function sort(line) {
|
|
@@ -22692,7 +22724,7 @@ function dist_p(n = false) {
|
|
|
22692
22724
|
let e = dist_C(n), i = (r, t, c, o)=>{
|
|
22693
22725
|
let l = "", s = 0;
|
|
22694
22726
|
do l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
|
|
22695
|
-
while (~o)
|
|
22727
|
+
while (~o)
|
|
22696
22728
|
return l + r.substring(s);
|
|
22697
22729
|
}, g = (r, t, c = r)=>{
|
|
22698
22730
|
let o = (l)=>{
|
|
@@ -22730,11 +22762,7 @@ function offsetToLineNumber(source, offset) {
|
|
|
22730
22762
|
return line + 1;
|
|
22731
22763
|
}
|
|
22732
22764
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
22733
|
-
const MagicString = (await import("./2~
|
|
22734
|
-
Bundle: mod.Bundle,
|
|
22735
|
-
SourceMap: mod.SourceMap,
|
|
22736
|
-
default: mod.MagicString
|
|
22737
|
-
}))).default;
|
|
22765
|
+
const MagicString = (await import("./2~magic-string.es.js").then((m)=>m.magic_string_es_namespaceObject)).default;
|
|
22738
22766
|
const files = new Set(snapshots.map((i)=>i.file));
|
|
22739
22767
|
await Promise.all(Array.from(files).map(async (file)=>{
|
|
22740
22768
|
const snaps = snapshots.filter((i)=>i.file === file);
|
|
@@ -24226,7 +24254,7 @@ class TestRunner {
|
|
|
24226
24254
|
errors: 'fail' === currentResult.status && result && result.errors ? result.errors.concat(...currentResult.errors || []) : currentResult.errors
|
|
24227
24255
|
};
|
|
24228
24256
|
retryCount++;
|
|
24229
|
-
}while (retryCount <= retry && 'fail' === result.status)
|
|
24257
|
+
}while (retryCount <= retry && 'fail' === result.status)
|
|
24230
24258
|
result.duration = RealDate.now() - start;
|
|
24231
24259
|
result.retryCount = retryCount - 1;
|
|
24232
24260
|
result.heap = state.runtimeConfig.logHeapUsage ? runner_process.memoryUsage().heapUsed : void 0;
|
|
@@ -24808,16 +24836,24 @@ const createRuntimeAPI = ({ testPath, runtimeConfig, project })=>{
|
|
|
24808
24836
|
location: getLocation(),
|
|
24809
24837
|
runMode: condition ? 'skip' : options.runMode
|
|
24810
24838
|
});
|
|
24811
|
-
testFn.each = (
|
|
24839
|
+
testFn.each = (...args)=>{
|
|
24840
|
+
const location1 = getLocation();
|
|
24841
|
+
const cases = isTemplateStringsArray(args[0]) ? parseTemplateTable(args[0], ...args.slice(1)) : args[0];
|
|
24842
|
+
return runtimeInstance.each({
|
|
24812
24843
|
cases,
|
|
24813
24844
|
...options,
|
|
24814
|
-
location:
|
|
24845
|
+
location: location1
|
|
24815
24846
|
});
|
|
24816
|
-
|
|
24847
|
+
};
|
|
24848
|
+
testFn.for = (...args)=>{
|
|
24849
|
+
const location1 = getLocation();
|
|
24850
|
+
const cases = isTemplateStringsArray(args[0]) ? parseTemplateTable(args[0], ...args.slice(1)) : args[0];
|
|
24851
|
+
return runtimeInstance.for({
|
|
24817
24852
|
cases,
|
|
24818
24853
|
...options,
|
|
24819
|
-
location:
|
|
24854
|
+
location: location1
|
|
24820
24855
|
});
|
|
24856
|
+
};
|
|
24821
24857
|
return testFn;
|
|
24822
24858
|
};
|
|
24823
24859
|
const it = createTestAPI();
|
|
@@ -24887,16 +24923,24 @@ const createRuntimeAPI = ({ testPath, runtimeConfig, project })=>{
|
|
|
24887
24923
|
location: getLocation(),
|
|
24888
24924
|
runMode: condition ? options.runMode : 'skip'
|
|
24889
24925
|
});
|
|
24890
|
-
describeFn.each = (
|
|
24926
|
+
describeFn.each = (...args)=>{
|
|
24927
|
+
const location1 = getLocation();
|
|
24928
|
+
const cases = isTemplateStringsArray(args[0]) ? parseTemplateTable(args[0], ...args.slice(1)) : args[0];
|
|
24929
|
+
return runtimeInstance.describeEach({
|
|
24891
24930
|
cases,
|
|
24892
24931
|
...options,
|
|
24893
|
-
location:
|
|
24932
|
+
location: location1
|
|
24894
24933
|
});
|
|
24895
|
-
|
|
24934
|
+
};
|
|
24935
|
+
describeFn.for = (...args)=>{
|
|
24936
|
+
const location1 = getLocation();
|
|
24937
|
+
const cases = isTemplateStringsArray(args[0]) ? parseTemplateTable(args[0], ...args.slice(1)) : args[0];
|
|
24938
|
+
return runtimeInstance.describeFor({
|
|
24896
24939
|
cases,
|
|
24897
24940
|
...options,
|
|
24898
|
-
location:
|
|
24941
|
+
location: location1
|
|
24899
24942
|
});
|
|
24943
|
+
};
|
|
24900
24944
|
return describeFn;
|
|
24901
24945
|
};
|
|
24902
24946
|
const describe = createDescribeAPI();
|
|
@@ -24974,7 +25018,7 @@ function toTestInfo(test) {
|
|
|
24974
25018
|
runMode: test.runMode
|
|
24975
25019
|
};
|
|
24976
25020
|
}
|
|
24977
|
-
const fake_timers_src = __webpack_require__("../../node_modules/.pnpm/@sinonjs+fake-timers@15.1.
|
|
25021
|
+
const fake_timers_src = __webpack_require__("../../node_modules/.pnpm/@sinonjs+fake-timers@15.1.1/node_modules/@sinonjs/fake-timers/src/fake-timers-src.js");
|
|
24978
25022
|
var fakeTimers_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
24979
25023
|
const fakeTimers_RealDate = Date;
|
|
24980
25024
|
class FakeTimers {
|