@rstest/core 0.9.2 → 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~8843.js +5 -5
- package/dist/0~browserLoader.js +8 -8
- package/dist/0~browser~1.js +31 -31
- package/dist/0~checkThresholds.js +5 -5
- package/dist/{0~esm.js → 0~chokidar.js} +61 -18
- package/dist/0~console.js +7 -7
- package/dist/0~generate.js +4 -0
- package/dist/0~listTests.js +2 -2
- package/dist/0~mergeReports.js +127 -0
- package/dist/0~restart.js +3 -3
- package/dist/0~runTests.js +41 -41
- package/dist/1949.js +27 -11
- package/dist/255.js +3 -3
- package/dist/3145.js +160 -81
- package/dist/4411.js +3 -3
- package/dist/6830.js +43 -28
- package/dist/7552.js +82 -65
- package/dist/7704.js +2 -2
- package/dist/browser-runtime/723.js +142 -93
- package/dist/browser-runtime/index.d.ts +40 -5
- package/dist/browser.d.ts +40 -5
- package/dist/globalSetupWorker.js +4 -2
- package/dist/index.d.ts +53 -6
- package/dist/worker.d.ts +30 -3
- package/dist/worker.js +2 -2
- package/package.json +19 -18
- /package/dist/{0~esm.js.LICENSE.txt → 0~chokidar.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 {
|
|
@@ -6364,7 +6364,7 @@ __webpack_require__.add({
|
|
|
6364
6364
|
return !!whichTypedArray(value);
|
|
6365
6365
|
};
|
|
6366
6366
|
},
|
|
6367
|
-
"../../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__) {
|
|
6368
6368
|
/*!
|
|
6369
6369
|
* /**
|
|
6370
6370
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -6375,7 +6375,7 @@ __webpack_require__.add({
|
|
|
6375
6375
|
*/ (()=>{
|
|
6376
6376
|
"use strict";
|
|
6377
6377
|
var __webpack_modules__ = {
|
|
6378
|
-
"./src/cleanupSemantic.ts"
|
|
6378
|
+
"./src/cleanupSemantic.ts" (__unused_webpack_module, exports) {
|
|
6379
6379
|
Object.defineProperty(exports, "__esModule", {
|
|
6380
6380
|
value: true
|
|
6381
6381
|
});
|
|
@@ -6663,7 +6663,7 @@ __webpack_require__.add({
|
|
|
6663
6663
|
if (changes) diff_cleanupMerge(diffs);
|
|
6664
6664
|
};
|
|
6665
6665
|
},
|
|
6666
|
-
"./src/constants.ts"
|
|
6666
|
+
"./src/constants.ts" (__unused_webpack_module, exports) {
|
|
6667
6667
|
Object.defineProperty(exports, "__esModule", {
|
|
6668
6668
|
value: true
|
|
6669
6669
|
});
|
|
@@ -6671,16 +6671,16 @@ __webpack_require__.add({
|
|
|
6671
6671
|
exports.NO_DIFF_MESSAGE = 'Compared values have no visual difference.';
|
|
6672
6672
|
exports.SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";
|
|
6673
6673
|
},
|
|
6674
|
-
"./src/diffLines.ts"
|
|
6674
|
+
"./src/diffLines.ts" (__unused_webpack_module, exports, __nested_rspack_require_20509_20528__) {
|
|
6675
6675
|
Object.defineProperty(exports, "__esModule", {
|
|
6676
6676
|
value: true
|
|
6677
6677
|
});
|
|
6678
6678
|
exports.printDiffLines = exports.diffLinesUnified2 = exports.diffLinesUnified = exports.diffLinesRaw = void 0;
|
|
6679
|
-
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
6680
|
-
var _cleanupSemantic =
|
|
6681
|
-
var _escapeControlCharacters =
|
|
6682
|
-
var _joinAlignedDiffs =
|
|
6683
|
-
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");
|
|
6684
6684
|
function _interopRequireDefault(e) {
|
|
6685
6685
|
return e && e.__esModule ? e : {
|
|
6686
6686
|
default: e
|
|
@@ -6776,13 +6776,13 @@ __webpack_require__.add({
|
|
|
6776
6776
|
};
|
|
6777
6777
|
exports.diffLinesRaw = diffLinesRaw;
|
|
6778
6778
|
},
|
|
6779
|
-
"./src/diffStrings.ts"
|
|
6779
|
+
"./src/diffStrings.ts" (__unused_webpack_module, exports, __nested_rspack_require_26485_26504__) {
|
|
6780
6780
|
Object.defineProperty(exports, "__esModule", {
|
|
6781
6781
|
value: true
|
|
6782
6782
|
});
|
|
6783
6783
|
exports["default"] = void 0;
|
|
6784
|
-
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
6785
|
-
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");
|
|
6786
6786
|
function _interopRequireDefault(e) {
|
|
6787
6787
|
return e && e.__esModule ? e : {
|
|
6788
6788
|
default: e
|
|
@@ -6807,7 +6807,7 @@ __webpack_require__.add({
|
|
|
6807
6807
|
};
|
|
6808
6808
|
exports["default"] = diffStrings;
|
|
6809
6809
|
},
|
|
6810
|
-
"./src/escapeControlCharacters.ts"
|
|
6810
|
+
"./src/escapeControlCharacters.ts" (__unused_webpack_module, exports) {
|
|
6811
6811
|
Object.defineProperty(exports, "__esModule", {
|
|
6812
6812
|
value: true
|
|
6813
6813
|
});
|
|
@@ -6829,12 +6829,12 @@ __webpack_require__.add({
|
|
|
6829
6829
|
});
|
|
6830
6830
|
exports.escapeControlCharacters = escapeControlCharacters;
|
|
6831
6831
|
},
|
|
6832
|
-
"./src/getAlignedDiffs.ts"
|
|
6832
|
+
"./src/getAlignedDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_29203_29222__) {
|
|
6833
6833
|
Object.defineProperty(exports, "__esModule", {
|
|
6834
6834
|
value: true
|
|
6835
6835
|
});
|
|
6836
6836
|
exports["default"] = void 0;
|
|
6837
|
-
var _cleanupSemantic =
|
|
6837
|
+
var _cleanupSemantic = __nested_rspack_require_29203_29222__("./src/cleanupSemantic.ts");
|
|
6838
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]) : ''), '');
|
|
6839
6839
|
class ChangeBuffer {
|
|
6840
6840
|
op;
|
|
@@ -6940,12 +6940,12 @@ __webpack_require__.add({
|
|
|
6940
6940
|
};
|
|
6941
6941
|
exports["default"] = getAlignedDiffs;
|
|
6942
6942
|
},
|
|
6943
|
-
"./src/joinAlignedDiffs.ts"
|
|
6943
|
+
"./src/joinAlignedDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_36061_36080__) {
|
|
6944
6944
|
Object.defineProperty(exports, "__esModule", {
|
|
6945
6945
|
value: true
|
|
6946
6946
|
});
|
|
6947
6947
|
exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0;
|
|
6948
|
-
var _cleanupSemantic =
|
|
6948
|
+
var _cleanupSemantic = __nested_rspack_require_36061_36080__("./src/cleanupSemantic.ts");
|
|
6949
6949
|
const formatTrailingSpaces = (line, trailingSpaceFormatter)=>line.replace(/\s+$/, (match)=>trailingSpaceFormatter(match));
|
|
6950
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)}`);
|
|
6951
6951
|
const printDeleteLine = (line, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder })=>printDiffLine(line, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
|
|
@@ -7069,7 +7069,7 @@ __webpack_require__.add({
|
|
|
7069
7069
|
}).join('\n');
|
|
7070
7070
|
exports.joinAlignedDiffsExpand = joinAlignedDiffsExpand;
|
|
7071
7071
|
},
|
|
7072
|
-
"./src/normalizeDiffOptions.ts"
|
|
7072
|
+
"./src/normalizeDiffOptions.ts" (__unused_webpack_module, exports) {
|
|
7073
7073
|
Object.defineProperty(exports, "__esModule", {
|
|
7074
7074
|
value: true
|
|
7075
7075
|
});
|
|
@@ -7113,16 +7113,16 @@ __webpack_require__.add({
|
|
|
7113
7113
|
});
|
|
7114
7114
|
exports.normalizeDiffOptions = normalizeDiffOptions;
|
|
7115
7115
|
},
|
|
7116
|
-
"./src/printDiffs.ts"
|
|
7116
|
+
"./src/printDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_45432_45451__) {
|
|
7117
7117
|
Object.defineProperty(exports, "__esModule", {
|
|
7118
7118
|
value: true
|
|
7119
7119
|
});
|
|
7120
7120
|
exports.diffStringsUnified = exports.diffStringsRaw = void 0;
|
|
7121
|
-
var _cleanupSemantic =
|
|
7122
|
-
var _diffLines =
|
|
7123
|
-
var _diffStrings = _interopRequireDefault(
|
|
7124
|
-
var _getAlignedDiffs = _interopRequireDefault(
|
|
7125
|
-
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");
|
|
7126
7126
|
function _interopRequireDefault(e) {
|
|
7127
7127
|
return e && e.__esModule ? e : {
|
|
7128
7128
|
default: e
|
|
@@ -7157,13 +7157,13 @@ __webpack_require__.add({
|
|
|
7157
7157
|
}
|
|
7158
7158
|
};
|
|
7159
7159
|
var __webpack_module_cache__ = {};
|
|
7160
|
-
function
|
|
7160
|
+
function __nested_rspack_require_48187__(moduleId) {
|
|
7161
7161
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
7162
7162
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
7163
7163
|
var module = __webpack_module_cache__[moduleId] = {
|
|
7164
7164
|
exports: {}
|
|
7165
7165
|
};
|
|
7166
|
-
__webpack_modules__[moduleId](module, module.exports,
|
|
7166
|
+
__webpack_modules__[moduleId](module, module.exports, __nested_rspack_require_48187__);
|
|
7167
7167
|
return module.exports;
|
|
7168
7168
|
}
|
|
7169
7169
|
var __nested_rspack_exports__ = {};
|
|
@@ -7229,13 +7229,13 @@ __webpack_require__.add({
|
|
|
7229
7229
|
});
|
|
7230
7230
|
var _chalk = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"));
|
|
7231
7231
|
var _getType = __webpack_require__("../../node_modules/.pnpm/@jest+get-type@30.1.0/node_modules/@jest/get-type/build/index.js");
|
|
7232
|
-
var _prettyFormat = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.
|
|
7233
|
-
var _cleanupSemantic =
|
|
7234
|
-
var _constants =
|
|
7235
|
-
var _diffLines =
|
|
7236
|
-
var _escapeControlCharacters =
|
|
7237
|
-
var _normalizeDiffOptions =
|
|
7238
|
-
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");
|
|
7239
7239
|
function _interopRequireDefault(e) {
|
|
7240
7240
|
return e && e.__esModule ? e : {
|
|
7241
7241
|
default: e
|
|
@@ -7491,7 +7491,7 @@ __webpack_require__.add({
|
|
|
7491
7491
|
'BigUint64Array'
|
|
7492
7492
|
];
|
|
7493
7493
|
},
|
|
7494
|
-
"../../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__) {
|
|
7495
7495
|
/*!
|
|
7496
7496
|
* /**
|
|
7497
7497
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7502,7 +7502,7 @@ __webpack_require__.add({
|
|
|
7502
7502
|
*/ (()=>{
|
|
7503
7503
|
"use strict";
|
|
7504
7504
|
var __webpack_modules__ = {
|
|
7505
|
-
"./src/collections.ts"
|
|
7505
|
+
"./src/collections.ts" (__unused_webpack_module, exports) {
|
|
7506
7506
|
Object.defineProperty(exports, "__esModule", {
|
|
7507
7507
|
value: true
|
|
7508
7508
|
});
|
|
@@ -7607,12 +7607,12 @@ __webpack_require__.add({
|
|
|
7607
7607
|
return result;
|
|
7608
7608
|
}
|
|
7609
7609
|
},
|
|
7610
|
-
"./src/plugins/AsymmetricMatcher.ts"
|
|
7610
|
+
"./src/plugins/AsymmetricMatcher.ts" (__unused_webpack_module, exports, __nested_rspack_require_5486_5505__) {
|
|
7611
7611
|
Object.defineProperty(exports, "__esModule", {
|
|
7612
7612
|
value: true
|
|
7613
7613
|
});
|
|
7614
7614
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7615
|
-
var _collections =
|
|
7615
|
+
var _collections = __nested_rspack_require_5486_5505__("./src/collections.ts");
|
|
7616
7616
|
var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
7617
7617
|
const asymmetricMatcher = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('jest.asymmetricMatcher') : 0x13_57_a5;
|
|
7618
7618
|
const SPACE = ' ';
|
|
@@ -7644,12 +7644,12 @@ __webpack_require__.add({
|
|
|
7644
7644
|
};
|
|
7645
7645
|
exports["default"] = plugin;
|
|
7646
7646
|
},
|
|
7647
|
-
"./src/plugins/DOMCollection.ts"
|
|
7647
|
+
"./src/plugins/DOMCollection.ts" (__unused_webpack_module, exports, __nested_rspack_require_7938_7957__) {
|
|
7648
7648
|
Object.defineProperty(exports, "__esModule", {
|
|
7649
7649
|
value: true
|
|
7650
7650
|
});
|
|
7651
7651
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7652
|
-
var _collections =
|
|
7652
|
+
var _collections = __nested_rspack_require_7938_7957__("./src/collections.ts");
|
|
7653
7653
|
const SPACE = ' ';
|
|
7654
7654
|
const OBJECT_NAMES = new Set([
|
|
7655
7655
|
'DOMStringMap',
|
|
@@ -7681,12 +7681,12 @@ __webpack_require__.add({
|
|
|
7681
7681
|
};
|
|
7682
7682
|
exports["default"] = plugin;
|
|
7683
7683
|
},
|
|
7684
|
-
"./src/plugins/DOMElement.ts"
|
|
7684
|
+
"./src/plugins/DOMElement.ts" (__unused_webpack_module, exports, __nested_rspack_require_9600_9619__) {
|
|
7685
7685
|
Object.defineProperty(exports, "__esModule", {
|
|
7686
7686
|
value: true
|
|
7687
7687
|
});
|
|
7688
7688
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7689
|
-
var _markup =
|
|
7689
|
+
var _markup = __nested_rspack_require_9600_9619__("./src/plugins/lib/markup.ts");
|
|
7690
7690
|
const ELEMENT_NODE = 1;
|
|
7691
7691
|
const TEXT_NODE = 3;
|
|
7692
7692
|
const COMMENT_NODE = 8;
|
|
@@ -7738,12 +7738,12 @@ __webpack_require__.add({
|
|
|
7738
7738
|
};
|
|
7739
7739
|
exports["default"] = plugin;
|
|
7740
7740
|
},
|
|
7741
|
-
"./src/plugins/Immutable.ts"
|
|
7741
|
+
"./src/plugins/Immutable.ts" (__unused_webpack_module, exports, __nested_rspack_require_12365_12384__) {
|
|
7742
7742
|
Object.defineProperty(exports, "__esModule", {
|
|
7743
7743
|
value: true
|
|
7744
7744
|
});
|
|
7745
7745
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7746
|
-
var _collections =
|
|
7746
|
+
var _collections = __nested_rspack_require_12365_12384__("./src/collections.ts");
|
|
7747
7747
|
const IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
|
|
7748
7748
|
const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
|
|
7749
7749
|
const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
|
|
@@ -7807,13 +7807,13 @@ __webpack_require__.add({
|
|
|
7807
7807
|
};
|
|
7808
7808
|
exports["default"] = plugin;
|
|
7809
7809
|
},
|
|
7810
|
-
"./src/plugins/ReactElement.ts"
|
|
7810
|
+
"./src/plugins/ReactElement.ts" (__unused_webpack_module, exports, __nested_rspack_require_17259_17278__) {
|
|
7811
7811
|
Object.defineProperty(exports, "__esModule", {
|
|
7812
7812
|
value: true
|
|
7813
7813
|
});
|
|
7814
7814
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7815
7815
|
var ReactIs = _interopRequireWildcard(__webpack_require__("../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js"));
|
|
7816
|
-
var _markup =
|
|
7816
|
+
var _markup = __nested_rspack_require_17259_17278__("./src/plugins/lib/markup.ts");
|
|
7817
7817
|
function _interopRequireWildcard(e, t) {
|
|
7818
7818
|
if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap();
|
|
7819
7819
|
return (_interopRequireWildcard = function(e, t) {
|
|
@@ -7871,12 +7871,12 @@ __webpack_require__.add({
|
|
|
7871
7871
|
};
|
|
7872
7872
|
exports["default"] = plugin;
|
|
7873
7873
|
},
|
|
7874
|
-
"./src/plugins/ReactTestComponent.ts"
|
|
7874
|
+
"./src/plugins/ReactTestComponent.ts" (__unused_webpack_module, exports, __nested_rspack_require_20720_20739__) {
|
|
7875
7875
|
Object.defineProperty(exports, "__esModule", {
|
|
7876
7876
|
value: true
|
|
7877
7877
|
});
|
|
7878
7878
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
7879
|
-
var _markup =
|
|
7879
|
+
var _markup = __nested_rspack_require_20720_20739__("./src/plugins/lib/markup.ts");
|
|
7880
7880
|
var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
7881
7881
|
const testSymbol = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('react.test.json') : 0xe_a7_13_57;
|
|
7882
7882
|
const getPropKeys = (object)=>{
|
|
@@ -7893,7 +7893,7 @@ __webpack_require__.add({
|
|
|
7893
7893
|
};
|
|
7894
7894
|
exports["default"] = plugin;
|
|
7895
7895
|
},
|
|
7896
|
-
"./src/plugins/lib/escapeHTML.ts"
|
|
7896
|
+
"./src/plugins/lib/escapeHTML.ts" (__unused_webpack_module, exports) {
|
|
7897
7897
|
Object.defineProperty(exports, "__esModule", {
|
|
7898
7898
|
value: true
|
|
7899
7899
|
});
|
|
@@ -7902,12 +7902,12 @@ __webpack_require__.add({
|
|
|
7902
7902
|
return str.replaceAll('<', '<').replaceAll('>', '>');
|
|
7903
7903
|
}
|
|
7904
7904
|
},
|
|
7905
|
-
"./src/plugins/lib/markup.ts"
|
|
7905
|
+
"./src/plugins/lib/markup.ts" (__unused_webpack_module, exports, __nested_rspack_require_22778_22797__) {
|
|
7906
7906
|
Object.defineProperty(exports, "__esModule", {
|
|
7907
7907
|
value: true
|
|
7908
7908
|
});
|
|
7909
7909
|
exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
|
|
7910
|
-
var _escapeHTML = _interopRequireDefault(
|
|
7910
|
+
var _escapeHTML = _interopRequireDefault(__nested_rspack_require_22778_22797__("./src/plugins/lib/escapeHTML.ts"));
|
|
7911
7911
|
function _interopRequireDefault(e) {
|
|
7912
7912
|
return e && e.__esModule ? e : {
|
|
7913
7913
|
default: e
|
|
@@ -7952,13 +7952,13 @@ __webpack_require__.add({
|
|
|
7952
7952
|
}
|
|
7953
7953
|
};
|
|
7954
7954
|
var __webpack_module_cache__ = {};
|
|
7955
|
-
function
|
|
7955
|
+
function __nested_rspack_require_26126__(moduleId) {
|
|
7956
7956
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
7957
7957
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
7958
7958
|
var module = __webpack_module_cache__[moduleId] = {
|
|
7959
7959
|
exports: {}
|
|
7960
7960
|
};
|
|
7961
|
-
__webpack_modules__[moduleId](module, module.exports,
|
|
7961
|
+
__webpack_modules__[moduleId](module, module.exports, __nested_rspack_require_26126__);
|
|
7962
7962
|
return module.exports;
|
|
7963
7963
|
}
|
|
7964
7964
|
var __nested_rspack_exports__ = {};
|
|
@@ -7971,13 +7971,13 @@ __webpack_require__.add({
|
|
|
7971
7971
|
exports.format = format;
|
|
7972
7972
|
exports.plugins = void 0;
|
|
7973
7973
|
var _ansiStyles = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js"));
|
|
7974
|
-
var _collections =
|
|
7975
|
-
var _AsymmetricMatcher = _interopRequireDefault(
|
|
7976
|
-
var _DOMCollection = _interopRequireDefault(
|
|
7977
|
-
var _DOMElement = _interopRequireDefault(
|
|
7978
|
-
var _Immutable = _interopRequireDefault(
|
|
7979
|
-
var _ReactElement = _interopRequireDefault(
|
|
7980
|
-
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"));
|
|
7981
7981
|
function _interopRequireDefault(e) {
|
|
7982
7982
|
return e && e.__esModule ? e : {
|
|
7983
7983
|
default: e
|
|
@@ -17880,14 +17880,30 @@ const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node
|
|
|
17880
17880
|
const process_browser = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
17881
17881
|
const browser = __webpack_require__("../../node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js");
|
|
17882
17882
|
const tty_browserify = __webpack_require__("../../node_modules/.pnpm/tty-browserify@0.0.1/node_modules/tty-browserify/index.js");
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
const
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
const
|
|
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
|
+
};
|
|
17891
17907
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process_browser.argv) {
|
|
17892
17908
|
const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
|
|
17893
17909
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -18006,7 +18022,7 @@ let endColor = [
|
|
|
18006
18022
|
];
|
|
18007
18023
|
let isWord = (char)=>!/[\s\n]/.test(char);
|
|
18008
18024
|
let gradient = (message)=>{
|
|
18009
|
-
if (colorLevel < 3) return 2 === colorLevel ?
|
|
18025
|
+
if (colorLevel < 3) return 2 === colorLevel ? dist_color.cyan(message) : message;
|
|
18010
18026
|
let chars = [
|
|
18011
18027
|
...message
|
|
18012
18028
|
];
|
|
@@ -18026,7 +18042,7 @@ let gradient = (message)=>{
|
|
|
18026
18042
|
}
|
|
18027
18043
|
output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
|
|
18028
18044
|
}
|
|
18029
|
-
return bold(output);
|
|
18045
|
+
return dist_color.bold(output);
|
|
18030
18046
|
};
|
|
18031
18047
|
let LOG_LEVEL = {
|
|
18032
18048
|
silent: -1,
|
|
@@ -18040,32 +18056,32 @@ let LOG_TYPES = {
|
|
|
18040
18056
|
error: {
|
|
18041
18057
|
label: 'error',
|
|
18042
18058
|
level: 'error',
|
|
18043
|
-
color: red
|
|
18059
|
+
color: dist_color.red
|
|
18044
18060
|
},
|
|
18045
18061
|
warn: {
|
|
18046
18062
|
label: 'warn',
|
|
18047
18063
|
level: 'warn',
|
|
18048
|
-
color: yellow
|
|
18064
|
+
color: dist_color.yellow
|
|
18049
18065
|
},
|
|
18050
18066
|
info: {
|
|
18051
18067
|
label: 'info',
|
|
18052
18068
|
level: 'info',
|
|
18053
|
-
color: cyan
|
|
18069
|
+
color: dist_color.cyan
|
|
18054
18070
|
},
|
|
18055
18071
|
start: {
|
|
18056
18072
|
label: 'start',
|
|
18057
18073
|
level: 'info',
|
|
18058
|
-
color: cyan
|
|
18074
|
+
color: dist_color.cyan
|
|
18059
18075
|
},
|
|
18060
18076
|
ready: {
|
|
18061
18077
|
label: 'ready',
|
|
18062
18078
|
level: 'info',
|
|
18063
|
-
color: green
|
|
18079
|
+
color: dist_color.green
|
|
18064
18080
|
},
|
|
18065
18081
|
success: {
|
|
18066
18082
|
label: 'success',
|
|
18067
18083
|
level: 'info',
|
|
18068
|
-
color: green
|
|
18084
|
+
color: dist_color.green
|
|
18069
18085
|
},
|
|
18070
18086
|
log: {
|
|
18071
18087
|
level: 'info'
|
|
@@ -18073,14 +18089,14 @@ let LOG_TYPES = {
|
|
|
18073
18089
|
debug: {
|
|
18074
18090
|
label: 'debug',
|
|
18075
18091
|
level: 'verbose',
|
|
18076
|
-
color: magenta
|
|
18092
|
+
color: dist_color.magenta
|
|
18077
18093
|
}
|
|
18078
18094
|
};
|
|
18079
18095
|
const dist_normalizeErrorMessage = (err)=>{
|
|
18080
18096
|
if (err.stack) {
|
|
18081
18097
|
let [name, ...rest] = err.stack.split('\n');
|
|
18082
18098
|
if (name.startsWith('Error: ')) name = name.slice(7);
|
|
18083
|
-
return `${name}\n${gray(rest.join('\n'))}`;
|
|
18099
|
+
return `${name}\n${dist_color.gray(rest.join('\n'))}`;
|
|
18084
18100
|
}
|
|
18085
18101
|
return err.message;
|
|
18086
18102
|
};
|
|
@@ -18095,18 +18111,18 @@ let createLogger = (options = {})=>{
|
|
|
18095
18111
|
let text = '';
|
|
18096
18112
|
if ('label' in logType) {
|
|
18097
18113
|
label = (logType.label || '').padEnd(7);
|
|
18098
|
-
label = bold(logType.color ? logType.color(label) : label);
|
|
18114
|
+
label = dist_color.bold(logType.color ? logType.color(label) : label);
|
|
18099
18115
|
}
|
|
18100
18116
|
if (message instanceof Error) {
|
|
18101
18117
|
text += dist_normalizeErrorMessage(message);
|
|
18102
18118
|
const { cause } = message;
|
|
18103
18119
|
if (cause) {
|
|
18104
|
-
text += yellow('\n [cause]: ');
|
|
18120
|
+
text += dist_color.yellow('\n [cause]: ');
|
|
18105
18121
|
text += cause instanceof Error ? dist_normalizeErrorMessage(cause) : String(cause);
|
|
18106
18122
|
}
|
|
18107
18123
|
} else if ('error' === level && 'string' == typeof message) {
|
|
18108
18124
|
let lines = message.split('\n');
|
|
18109
|
-
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');
|
|
18110
18126
|
} else text = `${message}`;
|
|
18111
18127
|
const method = 'error' === level || 'warn' === level ? level : 'log';
|
|
18112
18128
|
console[method](label.length ? `${label} ${text}` : text, ...args);
|
|
@@ -21168,7 +21184,7 @@ function chai_use(fn) {
|
|
|
21168
21184
|
return exports;
|
|
21169
21185
|
}
|
|
21170
21186
|
chai_name(chai_use, "use");
|
|
21171
|
-
const jest_diff_build = __webpack_require__("../../node_modules/.pnpm/jest-diff@30.
|
|
21187
|
+
const jest_diff_build = __webpack_require__("../../node_modules/.pnpm/jest-diff@30.3.0/node_modules/jest-diff/build/index.js");
|
|
21172
21188
|
jest_diff_build.DIFF_DELETE;
|
|
21173
21189
|
jest_diff_build.DIFF_EQUAL;
|
|
21174
21190
|
jest_diff_build.DIFF_INSERT;
|
|
@@ -21179,7 +21195,7 @@ jest_diff_build.diffLinesUnified;
|
|
|
21179
21195
|
jest_diff_build.diffLinesUnified2;
|
|
21180
21196
|
jest_diff_build.diffStringsRaw;
|
|
21181
21197
|
jest_diff_build.diffStringsUnified;
|
|
21182
|
-
const pretty_format_build_0 = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.
|
|
21198
|
+
const pretty_format_build_0 = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js");
|
|
21183
21199
|
pretty_format_build_0.DEFAULT_OPTIONS;
|
|
21184
21200
|
const build_format = pretty_format_build_0.format;
|
|
21185
21201
|
const build_plugins = pretty_format_build_0.plugins;
|
|
@@ -21277,6 +21293,23 @@ function util_getValue(source, path, defaultValue) {
|
|
|
21277
21293
|
}
|
|
21278
21294
|
return result;
|
|
21279
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
|
+
}
|
|
21280
21313
|
class TestRegisterError extends Error {
|
|
21281
21314
|
}
|
|
21282
21315
|
const unsupported = [
|
|
@@ -24803,16 +24836,24 @@ const createRuntimeAPI = ({ testPath, runtimeConfig, project })=>{
|
|
|
24803
24836
|
location: getLocation(),
|
|
24804
24837
|
runMode: condition ? 'skip' : options.runMode
|
|
24805
24838
|
});
|
|
24806
|
-
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({
|
|
24807
24843
|
cases,
|
|
24808
24844
|
...options,
|
|
24809
|
-
location:
|
|
24845
|
+
location: location1
|
|
24810
24846
|
});
|
|
24811
|
-
|
|
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({
|
|
24812
24852
|
cases,
|
|
24813
24853
|
...options,
|
|
24814
|
-
location:
|
|
24854
|
+
location: location1
|
|
24815
24855
|
});
|
|
24856
|
+
};
|
|
24816
24857
|
return testFn;
|
|
24817
24858
|
};
|
|
24818
24859
|
const it = createTestAPI();
|
|
@@ -24882,16 +24923,24 @@ const createRuntimeAPI = ({ testPath, runtimeConfig, project })=>{
|
|
|
24882
24923
|
location: getLocation(),
|
|
24883
24924
|
runMode: condition ? options.runMode : 'skip'
|
|
24884
24925
|
});
|
|
24885
|
-
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({
|
|
24886
24930
|
cases,
|
|
24887
24931
|
...options,
|
|
24888
|
-
location:
|
|
24932
|
+
location: location1
|
|
24889
24933
|
});
|
|
24890
|
-
|
|
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({
|
|
24891
24939
|
cases,
|
|
24892
24940
|
...options,
|
|
24893
|
-
location:
|
|
24941
|
+
location: location1
|
|
24894
24942
|
});
|
|
24943
|
+
};
|
|
24895
24944
|
return describeFn;
|
|
24896
24945
|
};
|
|
24897
24946
|
const describe = createDescribeAPI();
|
|
@@ -24969,7 +25018,7 @@ function toTestInfo(test) {
|
|
|
24969
25018
|
runMode: test.runMode
|
|
24970
25019
|
};
|
|
24971
25020
|
}
|
|
24972
|
-
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");
|
|
24973
25022
|
var fakeTimers_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
24974
25023
|
const fakeTimers_RealDate = Date;
|
|
24975
25024
|
class FakeTimers {
|