@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
package/dist/{1294.js → 7552.js}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*! LICENSE: 7552.js.LICENSE.txt */
|
|
2
2
|
import "node:module";
|
|
3
|
+
import * as __rspack_external_node_os_74b4b876 from "node:os";
|
|
4
|
+
import * as __rspack_external_node_tty_c64aab7e from "node:tty";
|
|
3
5
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
4
|
-
import "./3160.js";
|
|
5
6
|
__webpack_require__.add({
|
|
6
|
-
"../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
7
|
+
"../../node_modules/.pnpm/@jest+diff-sequences@30.3.0/node_modules/@jest/diff-sequences/build/index.js" (module) {
|
|
7
8
|
/*!
|
|
8
9
|
* /**
|
|
9
10
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -616,8 +617,7 @@ __webpack_require__.add({
|
|
|
616
617
|
get: assembleStyles
|
|
617
618
|
});
|
|
618
619
|
},
|
|
619
|
-
"../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js" (module,
|
|
620
|
-
__webpack_require__.r(exports);
|
|
620
|
+
"../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
621
621
|
module = __webpack_require__.nmd(module);
|
|
622
622
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
623
623
|
const wrapAnsi256 = (offset = 0)=>(code)=>`\u001B[${38 + offset};5;${code}m`;
|
|
@@ -2866,7 +2866,7 @@ __webpack_require__.add({
|
|
|
2866
2866
|
return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
|
|
2867
2867
|
};
|
|
2868
2868
|
},
|
|
2869
|
-
"../../node_modules/.pnpm/jest-diff@30.
|
|
2869
|
+
"../../node_modules/.pnpm/jest-diff@30.3.0/node_modules/jest-diff/build/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2870
2870
|
/*!
|
|
2871
2871
|
* /**
|
|
2872
2872
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -2877,7 +2877,7 @@ __webpack_require__.add({
|
|
|
2877
2877
|
*/ (()=>{
|
|
2878
2878
|
"use strict";
|
|
2879
2879
|
var __webpack_modules__ = {
|
|
2880
|
-
"./src/cleanupSemantic.ts"
|
|
2880
|
+
"./src/cleanupSemantic.ts" (__unused_webpack_module, exports) {
|
|
2881
2881
|
Object.defineProperty(exports, "__esModule", {
|
|
2882
2882
|
value: true
|
|
2883
2883
|
});
|
|
@@ -3165,7 +3165,7 @@ __webpack_require__.add({
|
|
|
3165
3165
|
if (changes) diff_cleanupMerge(diffs);
|
|
3166
3166
|
};
|
|
3167
3167
|
},
|
|
3168
|
-
"./src/constants.ts"
|
|
3168
|
+
"./src/constants.ts" (__unused_webpack_module, exports) {
|
|
3169
3169
|
Object.defineProperty(exports, "__esModule", {
|
|
3170
3170
|
value: true
|
|
3171
3171
|
});
|
|
@@ -3173,16 +3173,16 @@ __webpack_require__.add({
|
|
|
3173
3173
|
exports.NO_DIFF_MESSAGE = 'Compared values have no visual difference.';
|
|
3174
3174
|
exports.SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";
|
|
3175
3175
|
},
|
|
3176
|
-
"./src/diffLines.ts"
|
|
3176
|
+
"./src/diffLines.ts" (__unused_webpack_module, exports, __nested_rspack_require_20509_20528__) {
|
|
3177
3177
|
Object.defineProperty(exports, "__esModule", {
|
|
3178
3178
|
value: true
|
|
3179
3179
|
});
|
|
3180
3180
|
exports.printDiffLines = exports.diffLinesUnified2 = exports.diffLinesUnified = exports.diffLinesRaw = void 0;
|
|
3181
|
-
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
3182
|
-
var _cleanupSemantic =
|
|
3183
|
-
var _escapeControlCharacters =
|
|
3184
|
-
var _joinAlignedDiffs =
|
|
3185
|
-
var _normalizeDiffOptions =
|
|
3181
|
+
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.3.0/node_modules/@jest/diff-sequences/build/index.js"));
|
|
3182
|
+
var _cleanupSemantic = __nested_rspack_require_20509_20528__("./src/cleanupSemantic.ts");
|
|
3183
|
+
var _escapeControlCharacters = __nested_rspack_require_20509_20528__("./src/escapeControlCharacters.ts");
|
|
3184
|
+
var _joinAlignedDiffs = __nested_rspack_require_20509_20528__("./src/joinAlignedDiffs.ts");
|
|
3185
|
+
var _normalizeDiffOptions = __nested_rspack_require_20509_20528__("./src/normalizeDiffOptions.ts");
|
|
3186
3186
|
function _interopRequireDefault(e) {
|
|
3187
3187
|
return e && e.__esModule ? e : {
|
|
3188
3188
|
default: e
|
|
@@ -3278,13 +3278,13 @@ __webpack_require__.add({
|
|
|
3278
3278
|
};
|
|
3279
3279
|
exports.diffLinesRaw = diffLinesRaw;
|
|
3280
3280
|
},
|
|
3281
|
-
"./src/diffStrings.ts"
|
|
3281
|
+
"./src/diffStrings.ts" (__unused_webpack_module, exports, __nested_rspack_require_26485_26504__) {
|
|
3282
3282
|
Object.defineProperty(exports, "__esModule", {
|
|
3283
3283
|
value: true
|
|
3284
3284
|
});
|
|
3285
3285
|
exports["default"] = void 0;
|
|
3286
|
-
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.0
|
|
3287
|
-
var _cleanupSemantic =
|
|
3286
|
+
var _diffSequences = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/@jest+diff-sequences@30.3.0/node_modules/@jest/diff-sequences/build/index.js"));
|
|
3287
|
+
var _cleanupSemantic = __nested_rspack_require_26485_26504__("./src/cleanupSemantic.ts");
|
|
3288
3288
|
function _interopRequireDefault(e) {
|
|
3289
3289
|
return e && e.__esModule ? e : {
|
|
3290
3290
|
default: e
|
|
@@ -3309,7 +3309,7 @@ __webpack_require__.add({
|
|
|
3309
3309
|
};
|
|
3310
3310
|
exports["default"] = diffStrings;
|
|
3311
3311
|
},
|
|
3312
|
-
"./src/escapeControlCharacters.ts"
|
|
3312
|
+
"./src/escapeControlCharacters.ts" (__unused_webpack_module, exports) {
|
|
3313
3313
|
Object.defineProperty(exports, "__esModule", {
|
|
3314
3314
|
value: true
|
|
3315
3315
|
});
|
|
@@ -3331,12 +3331,12 @@ __webpack_require__.add({
|
|
|
3331
3331
|
});
|
|
3332
3332
|
exports.escapeControlCharacters = escapeControlCharacters;
|
|
3333
3333
|
},
|
|
3334
|
-
"./src/getAlignedDiffs.ts"
|
|
3334
|
+
"./src/getAlignedDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_29203_29222__) {
|
|
3335
3335
|
Object.defineProperty(exports, "__esModule", {
|
|
3336
3336
|
value: true
|
|
3337
3337
|
});
|
|
3338
3338
|
exports["default"] = void 0;
|
|
3339
|
-
var _cleanupSemantic =
|
|
3339
|
+
var _cleanupSemantic = __nested_rspack_require_29203_29222__("./src/cleanupSemantic.ts");
|
|
3340
3340
|
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]) : ''), '');
|
|
3341
3341
|
class ChangeBuffer {
|
|
3342
3342
|
op;
|
|
@@ -3442,12 +3442,12 @@ __webpack_require__.add({
|
|
|
3442
3442
|
};
|
|
3443
3443
|
exports["default"] = getAlignedDiffs;
|
|
3444
3444
|
},
|
|
3445
|
-
"./src/joinAlignedDiffs.ts"
|
|
3445
|
+
"./src/joinAlignedDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_36061_36080__) {
|
|
3446
3446
|
Object.defineProperty(exports, "__esModule", {
|
|
3447
3447
|
value: true
|
|
3448
3448
|
});
|
|
3449
3449
|
exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0;
|
|
3450
|
-
var _cleanupSemantic =
|
|
3450
|
+
var _cleanupSemantic = __nested_rspack_require_36061_36080__("./src/cleanupSemantic.ts");
|
|
3451
3451
|
const formatTrailingSpaces = (line, trailingSpaceFormatter)=>line.replace(/\s+$/, (match)=>trailingSpaceFormatter(match));
|
|
3452
3452
|
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)}`);
|
|
3453
3453
|
const printDeleteLine = (line, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder })=>printDiffLine(line, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder);
|
|
@@ -3571,7 +3571,7 @@ __webpack_require__.add({
|
|
|
3571
3571
|
}).join('\n');
|
|
3572
3572
|
exports.joinAlignedDiffsExpand = joinAlignedDiffsExpand;
|
|
3573
3573
|
},
|
|
3574
|
-
"./src/normalizeDiffOptions.ts"
|
|
3574
|
+
"./src/normalizeDiffOptions.ts" (__unused_webpack_module, exports) {
|
|
3575
3575
|
Object.defineProperty(exports, "__esModule", {
|
|
3576
3576
|
value: true
|
|
3577
3577
|
});
|
|
@@ -3615,16 +3615,16 @@ __webpack_require__.add({
|
|
|
3615
3615
|
});
|
|
3616
3616
|
exports.normalizeDiffOptions = normalizeDiffOptions;
|
|
3617
3617
|
},
|
|
3618
|
-
"./src/printDiffs.ts"
|
|
3618
|
+
"./src/printDiffs.ts" (__unused_webpack_module, exports, __nested_rspack_require_45432_45451__) {
|
|
3619
3619
|
Object.defineProperty(exports, "__esModule", {
|
|
3620
3620
|
value: true
|
|
3621
3621
|
});
|
|
3622
3622
|
exports.diffStringsUnified = exports.diffStringsRaw = void 0;
|
|
3623
|
-
var _cleanupSemantic =
|
|
3624
|
-
var _diffLines =
|
|
3625
|
-
var _diffStrings = _interopRequireDefault(
|
|
3626
|
-
var _getAlignedDiffs = _interopRequireDefault(
|
|
3627
|
-
var _normalizeDiffOptions =
|
|
3623
|
+
var _cleanupSemantic = __nested_rspack_require_45432_45451__("./src/cleanupSemantic.ts");
|
|
3624
|
+
var _diffLines = __nested_rspack_require_45432_45451__("./src/diffLines.ts");
|
|
3625
|
+
var _diffStrings = _interopRequireDefault(__nested_rspack_require_45432_45451__("./src/diffStrings.ts"));
|
|
3626
|
+
var _getAlignedDiffs = _interopRequireDefault(__nested_rspack_require_45432_45451__("./src/getAlignedDiffs.ts"));
|
|
3627
|
+
var _normalizeDiffOptions = __nested_rspack_require_45432_45451__("./src/normalizeDiffOptions.ts");
|
|
3628
3628
|
function _interopRequireDefault(e) {
|
|
3629
3629
|
return e && e.__esModule ? e : {
|
|
3630
3630
|
default: e
|
|
@@ -3659,13 +3659,13 @@ __webpack_require__.add({
|
|
|
3659
3659
|
}
|
|
3660
3660
|
};
|
|
3661
3661
|
var __webpack_module_cache__ = {};
|
|
3662
|
-
function
|
|
3662
|
+
function __nested_rspack_require_48187__(moduleId) {
|
|
3663
3663
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
3664
3664
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
3665
3665
|
var module = __webpack_module_cache__[moduleId] = {
|
|
3666
3666
|
exports: {}
|
|
3667
3667
|
};
|
|
3668
|
-
__webpack_modules__[moduleId](module, module.exports,
|
|
3668
|
+
__webpack_modules__[moduleId](module, module.exports, __nested_rspack_require_48187__);
|
|
3669
3669
|
return module.exports;
|
|
3670
3670
|
}
|
|
3671
3671
|
var __nested_rspack_exports__ = {};
|
|
@@ -3731,13 +3731,13 @@ __webpack_require__.add({
|
|
|
3731
3731
|
});
|
|
3732
3732
|
var _chalk = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"));
|
|
3733
3733
|
var _getType = __webpack_require__("../../node_modules/.pnpm/@jest+get-type@30.1.0/node_modules/@jest/get-type/build/index.js");
|
|
3734
|
-
var _prettyFormat = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.
|
|
3735
|
-
var _cleanupSemantic =
|
|
3736
|
-
var _constants =
|
|
3737
|
-
var _diffLines =
|
|
3738
|
-
var _escapeControlCharacters =
|
|
3739
|
-
var _normalizeDiffOptions =
|
|
3740
|
-
var _printDiffs =
|
|
3734
|
+
var _prettyFormat = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js");
|
|
3735
|
+
var _cleanupSemantic = __nested_rspack_require_48187__("./src/cleanupSemantic.ts");
|
|
3736
|
+
var _constants = __nested_rspack_require_48187__("./src/constants.ts");
|
|
3737
|
+
var _diffLines = __nested_rspack_require_48187__("./src/diffLines.ts");
|
|
3738
|
+
var _escapeControlCharacters = __nested_rspack_require_48187__("./src/escapeControlCharacters.ts");
|
|
3739
|
+
var _normalizeDiffOptions = __nested_rspack_require_48187__("./src/normalizeDiffOptions.ts");
|
|
3740
|
+
var _printDiffs = __nested_rspack_require_48187__("./src/printDiffs.ts");
|
|
3741
3741
|
function _interopRequireDefault(e) {
|
|
3742
3742
|
return e && e.__esModule ? e : {
|
|
3743
3743
|
default: e
|
|
@@ -3849,7 +3849,7 @@ __webpack_require__.add({
|
|
|
3849
3849
|
module.exports = __nested_rspack_exports__;
|
|
3850
3850
|
})();
|
|
3851
3851
|
},
|
|
3852
|
-
"../../node_modules/.pnpm/pretty-format@30.
|
|
3852
|
+
"../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
3853
3853
|
/*!
|
|
3854
3854
|
* /**
|
|
3855
3855
|
* * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -3860,7 +3860,7 @@ __webpack_require__.add({
|
|
|
3860
3860
|
*/ (()=>{
|
|
3861
3861
|
"use strict";
|
|
3862
3862
|
var __webpack_modules__ = {
|
|
3863
|
-
"./src/collections.ts"
|
|
3863
|
+
"./src/collections.ts" (__unused_webpack_module, exports) {
|
|
3864
3864
|
Object.defineProperty(exports, "__esModule", {
|
|
3865
3865
|
value: true
|
|
3866
3866
|
});
|
|
@@ -3965,12 +3965,12 @@ __webpack_require__.add({
|
|
|
3965
3965
|
return result;
|
|
3966
3966
|
}
|
|
3967
3967
|
},
|
|
3968
|
-
"./src/plugins/AsymmetricMatcher.ts"
|
|
3968
|
+
"./src/plugins/AsymmetricMatcher.ts" (__unused_webpack_module, exports, __nested_rspack_require_5486_5505__) {
|
|
3969
3969
|
Object.defineProperty(exports, "__esModule", {
|
|
3970
3970
|
value: true
|
|
3971
3971
|
});
|
|
3972
3972
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
3973
|
-
var _collections =
|
|
3973
|
+
var _collections = __nested_rspack_require_5486_5505__("./src/collections.ts");
|
|
3974
3974
|
var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
3975
3975
|
const asymmetricMatcher = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('jest.asymmetricMatcher') : 0x1357a5;
|
|
3976
3976
|
const SPACE = ' ';
|
|
@@ -4002,12 +4002,12 @@ __webpack_require__.add({
|
|
|
4002
4002
|
};
|
|
4003
4003
|
exports["default"] = plugin;
|
|
4004
4004
|
},
|
|
4005
|
-
"./src/plugins/DOMCollection.ts"
|
|
4005
|
+
"./src/plugins/DOMCollection.ts" (__unused_webpack_module, exports, __nested_rspack_require_7938_7957__) {
|
|
4006
4006
|
Object.defineProperty(exports, "__esModule", {
|
|
4007
4007
|
value: true
|
|
4008
4008
|
});
|
|
4009
4009
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
4010
|
-
var _collections =
|
|
4010
|
+
var _collections = __nested_rspack_require_7938_7957__("./src/collections.ts");
|
|
4011
4011
|
const SPACE = ' ';
|
|
4012
4012
|
const OBJECT_NAMES = new Set([
|
|
4013
4013
|
'DOMStringMap',
|
|
@@ -4039,12 +4039,12 @@ __webpack_require__.add({
|
|
|
4039
4039
|
};
|
|
4040
4040
|
exports["default"] = plugin;
|
|
4041
4041
|
},
|
|
4042
|
-
"./src/plugins/DOMElement.ts"
|
|
4042
|
+
"./src/plugins/DOMElement.ts" (__unused_webpack_module, exports, __nested_rspack_require_9600_9619__) {
|
|
4043
4043
|
Object.defineProperty(exports, "__esModule", {
|
|
4044
4044
|
value: true
|
|
4045
4045
|
});
|
|
4046
4046
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
4047
|
-
var _markup =
|
|
4047
|
+
var _markup = __nested_rspack_require_9600_9619__("./src/plugins/lib/markup.ts");
|
|
4048
4048
|
const ELEMENT_NODE = 1;
|
|
4049
4049
|
const TEXT_NODE = 3;
|
|
4050
4050
|
const COMMENT_NODE = 8;
|
|
@@ -4096,12 +4096,12 @@ __webpack_require__.add({
|
|
|
4096
4096
|
};
|
|
4097
4097
|
exports["default"] = plugin;
|
|
4098
4098
|
},
|
|
4099
|
-
"./src/plugins/Immutable.ts"
|
|
4099
|
+
"./src/plugins/Immutable.ts" (__unused_webpack_module, exports, __nested_rspack_require_12365_12384__) {
|
|
4100
4100
|
Object.defineProperty(exports, "__esModule", {
|
|
4101
4101
|
value: true
|
|
4102
4102
|
});
|
|
4103
4103
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
4104
|
-
var _collections =
|
|
4104
|
+
var _collections = __nested_rspack_require_12365_12384__("./src/collections.ts");
|
|
4105
4105
|
const IS_ITERABLE_SENTINEL = '@@__IMMUTABLE_ITERABLE__@@';
|
|
4106
4106
|
const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
|
|
4107
4107
|
const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
|
|
@@ -4165,13 +4165,13 @@ __webpack_require__.add({
|
|
|
4165
4165
|
};
|
|
4166
4166
|
exports["default"] = plugin;
|
|
4167
4167
|
},
|
|
4168
|
-
"./src/plugins/ReactElement.ts"
|
|
4168
|
+
"./src/plugins/ReactElement.ts" (__unused_webpack_module, exports, __nested_rspack_require_17259_17278__) {
|
|
4169
4169
|
Object.defineProperty(exports, "__esModule", {
|
|
4170
4170
|
value: true
|
|
4171
4171
|
});
|
|
4172
4172
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
4173
4173
|
var ReactIs = _interopRequireWildcard(__webpack_require__("../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js"));
|
|
4174
|
-
var _markup =
|
|
4174
|
+
var _markup = __nested_rspack_require_17259_17278__("./src/plugins/lib/markup.ts");
|
|
4175
4175
|
function _interopRequireWildcard(e, t) {
|
|
4176
4176
|
if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap();
|
|
4177
4177
|
return (_interopRequireWildcard = function(e, t) {
|
|
@@ -4229,12 +4229,12 @@ __webpack_require__.add({
|
|
|
4229
4229
|
};
|
|
4230
4230
|
exports["default"] = plugin;
|
|
4231
4231
|
},
|
|
4232
|
-
"./src/plugins/ReactTestComponent.ts"
|
|
4232
|
+
"./src/plugins/ReactTestComponent.ts" (__unused_webpack_module, exports, __nested_rspack_require_20720_20739__) {
|
|
4233
4233
|
Object.defineProperty(exports, "__esModule", {
|
|
4234
4234
|
value: true
|
|
4235
4235
|
});
|
|
4236
4236
|
exports.test = exports.serialize = exports["default"] = void 0;
|
|
4237
|
-
var _markup =
|
|
4237
|
+
var _markup = __nested_rspack_require_20720_20739__("./src/plugins/lib/markup.ts");
|
|
4238
4238
|
var Symbol1 = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
|
|
4239
4239
|
const testSymbol = 'function' == typeof Symbol1 && Symbol1.for ? Symbol1.for('react.test.json') : 0xea71357;
|
|
4240
4240
|
const getPropKeys = (object)=>{
|
|
@@ -4251,7 +4251,7 @@ __webpack_require__.add({
|
|
|
4251
4251
|
};
|
|
4252
4252
|
exports["default"] = plugin;
|
|
4253
4253
|
},
|
|
4254
|
-
"./src/plugins/lib/escapeHTML.ts"
|
|
4254
|
+
"./src/plugins/lib/escapeHTML.ts" (__unused_webpack_module, exports) {
|
|
4255
4255
|
Object.defineProperty(exports, "__esModule", {
|
|
4256
4256
|
value: true
|
|
4257
4257
|
});
|
|
@@ -4260,12 +4260,12 @@ __webpack_require__.add({
|
|
|
4260
4260
|
return str.replaceAll('<', '<').replaceAll('>', '>');
|
|
4261
4261
|
}
|
|
4262
4262
|
},
|
|
4263
|
-
"./src/plugins/lib/markup.ts"
|
|
4263
|
+
"./src/plugins/lib/markup.ts" (__unused_webpack_module, exports, __nested_rspack_require_22778_22797__) {
|
|
4264
4264
|
Object.defineProperty(exports, "__esModule", {
|
|
4265
4265
|
value: true
|
|
4266
4266
|
});
|
|
4267
4267
|
exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
|
|
4268
|
-
var _escapeHTML = _interopRequireDefault(
|
|
4268
|
+
var _escapeHTML = _interopRequireDefault(__nested_rspack_require_22778_22797__("./src/plugins/lib/escapeHTML.ts"));
|
|
4269
4269
|
function _interopRequireDefault(e) {
|
|
4270
4270
|
return e && e.__esModule ? e : {
|
|
4271
4271
|
default: e
|
|
@@ -4310,13 +4310,13 @@ __webpack_require__.add({
|
|
|
4310
4310
|
}
|
|
4311
4311
|
};
|
|
4312
4312
|
var __webpack_module_cache__ = {};
|
|
4313
|
-
function
|
|
4313
|
+
function __nested_rspack_require_26126__(moduleId) {
|
|
4314
4314
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
4315
4315
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
4316
4316
|
var module = __webpack_module_cache__[moduleId] = {
|
|
4317
4317
|
exports: {}
|
|
4318
4318
|
};
|
|
4319
|
-
__webpack_modules__[moduleId](module, module.exports,
|
|
4319
|
+
__webpack_modules__[moduleId](module, module.exports, __nested_rspack_require_26126__);
|
|
4320
4320
|
return module.exports;
|
|
4321
4321
|
}
|
|
4322
4322
|
var __nested_rspack_exports__ = {};
|
|
@@ -4329,13 +4329,13 @@ __webpack_require__.add({
|
|
|
4329
4329
|
exports.format = format;
|
|
4330
4330
|
exports.plugins = void 0;
|
|
4331
4331
|
var _ansiStyles = _interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js"));
|
|
4332
|
-
var _collections =
|
|
4333
|
-
var _AsymmetricMatcher = _interopRequireDefault(
|
|
4334
|
-
var _DOMCollection = _interopRequireDefault(
|
|
4335
|
-
var _DOMElement = _interopRequireDefault(
|
|
4336
|
-
var _Immutable = _interopRequireDefault(
|
|
4337
|
-
var _ReactElement = _interopRequireDefault(
|
|
4338
|
-
var _ReactTestComponent = _interopRequireDefault(
|
|
4332
|
+
var _collections = __nested_rspack_require_26126__("./src/collections.ts");
|
|
4333
|
+
var _AsymmetricMatcher = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/AsymmetricMatcher.ts"));
|
|
4334
|
+
var _DOMCollection = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/DOMCollection.ts"));
|
|
4335
|
+
var _DOMElement = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/DOMElement.ts"));
|
|
4336
|
+
var _Immutable = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/Immutable.ts"));
|
|
4337
|
+
var _ReactElement = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/ReactElement.ts"));
|
|
4338
|
+
var _ReactTestComponent = _interopRequireDefault(__nested_rspack_require_26126__("./src/plugins/ReactTestComponent.ts"));
|
|
4339
4339
|
function _interopRequireDefault(e) {
|
|
4340
4340
|
return e && e.__esModule ? e : {
|
|
4341
4341
|
default: e
|
|
@@ -4820,8 +4820,8 @@ __webpack_require__.add({
|
|
|
4820
4820
|
else module.exports = __webpack_require__("../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js");
|
|
4821
4821
|
},
|
|
4822
4822
|
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
4823
|
-
const os = __webpack_require__("
|
|
4824
|
-
const tty = __webpack_require__("
|
|
4823
|
+
const os = __webpack_require__("os");
|
|
4824
|
+
const tty = __webpack_require__("tty?6c51");
|
|
4825
4825
|
const hasFlag = __webpack_require__("../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js");
|
|
4826
4826
|
const { env } = process;
|
|
4827
4827
|
let forceColor;
|
|
@@ -4885,24 +4885,30 @@ __webpack_require__.add({
|
|
|
4885
4885
|
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
4886
4886
|
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
4887
4887
|
};
|
|
4888
|
+
},
|
|
4889
|
+
os (module) {
|
|
4890
|
+
module.exports = __rspack_external_node_os_74b4b876;
|
|
4891
|
+
},
|
|
4892
|
+
"tty?6c51" (module) {
|
|
4893
|
+
module.exports = __rspack_external_node_tty_c64aab7e;
|
|
4888
4894
|
}
|
|
4889
4895
|
});
|
|
4890
|
-
const
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
const diff =
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
const
|
|
4902
|
-
|
|
4903
|
-
const format =
|
|
4904
|
-
const plugins =
|
|
4905
|
-
|
|
4896
|
+
const jest_diff_build = __webpack_require__("../../node_modules/.pnpm/jest-diff@30.3.0/node_modules/jest-diff/build/index.js");
|
|
4897
|
+
jest_diff_build.DIFF_DELETE;
|
|
4898
|
+
jest_diff_build.DIFF_EQUAL;
|
|
4899
|
+
jest_diff_build.DIFF_INSERT;
|
|
4900
|
+
jest_diff_build.Diff;
|
|
4901
|
+
const diff = jest_diff_build.diff;
|
|
4902
|
+
jest_diff_build.diffLinesRaw;
|
|
4903
|
+
jest_diff_build.diffLinesUnified;
|
|
4904
|
+
jest_diff_build.diffLinesUnified2;
|
|
4905
|
+
jest_diff_build.diffStringsRaw;
|
|
4906
|
+
jest_diff_build.diffStringsUnified;
|
|
4907
|
+
const pretty_format_build = __webpack_require__("../../node_modules/.pnpm/pretty-format@30.3.0/node_modules/pretty-format/build/index.js");
|
|
4908
|
+
pretty_format_build.DEFAULT_OPTIONS;
|
|
4909
|
+
const format = pretty_format_build.format;
|
|
4910
|
+
const plugins = pretty_format_build.plugins;
|
|
4911
|
+
pretty_format_build["default"];
|
|
4906
4912
|
const REAL_TIMERS = {};
|
|
4907
4913
|
const setRealTimers = ()=>{
|
|
4908
4914
|
REAL_TIMERS.setTimeout ??= globalThis.setTimeout.bind(globalThis);
|
|
@@ -4995,6 +5001,23 @@ function getValue(source, path, defaultValue) {
|
|
|
4995
5001
|
}
|
|
4996
5002
|
return result;
|
|
4997
5003
|
}
|
|
5004
|
+
function isTemplateStringsArray(value) {
|
|
5005
|
+
return Array.isArray(value) && 'raw' in value && Array.isArray(value.raw);
|
|
5006
|
+
}
|
|
5007
|
+
function parseTemplateTable(strings, ...expressions) {
|
|
5008
|
+
const raw = strings.join('\0');
|
|
5009
|
+
const lines = raw.split('\n').filter((line)=>line.trim());
|
|
5010
|
+
if (0 === lines.length) return [];
|
|
5011
|
+
const headers = lines[0].split('|').map((h)=>h.trim()).filter(Boolean);
|
|
5012
|
+
if (0 === headers.length) return [];
|
|
5013
|
+
const result = [];
|
|
5014
|
+
for(let i = 0; i < expressions.length; i += headers.length){
|
|
5015
|
+
const row = {};
|
|
5016
|
+
for(let j = 0; j < headers.length; j++)row[headers[j]] = expressions[i + j];
|
|
5017
|
+
result.push(row);
|
|
5018
|
+
}
|
|
5019
|
+
return result;
|
|
5020
|
+
}
|
|
4998
5021
|
class TestRegisterError extends Error {
|
|
4999
5022
|
}
|
|
5000
5023
|
class RstestError extends Error {
|
|
@@ -5021,4 +5044,4 @@ function checkPkgInstalled(name) {
|
|
|
5021
5044
|
throw error;
|
|
5022
5045
|
}
|
|
5023
5046
|
}
|
|
5024
|
-
export { TestRegisterError, checkPkgInstalled, formatName, formatTestError, getRealTimers, setRealTimers };
|
|
5047
|
+
export { TestRegisterError, checkPkgInstalled, formatName, formatTestError, getRealTimers, isTemplateStringsArray, parseTemplateTable, setRealTimers };
|
package/dist/{5734.js → 7704.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import { createRequire } from "
|
|
3
|
-
import { pathToFileURL } from "
|
|
4
|
-
import "./
|
|
5
|
-
import { color } from "./
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
4
|
+
import "./4411.js";
|
|
5
|
+
import { color as logger_color } from "./6830.js";
|
|
6
6
|
const CoverageProviderMap = {
|
|
7
7
|
istanbul: '@rstest/coverage-istanbul'
|
|
8
8
|
};
|
|
@@ -23,7 +23,7 @@ const loadCoverageProvider = async (options, root)=>{
|
|
|
23
23
|
CoverageProvider
|
|
24
24
|
};
|
|
25
25
|
} catch {
|
|
26
|
-
const error = new Error(`Failed to load coverage provider module: ${
|
|
26
|
+
const error = new Error(`Failed to load coverage provider module: ${logger_color.cyan(moduleName)} in ${logger_color.underline(root)}, please make sure it is installed.\n`);
|
|
27
27
|
error.stack = '';
|
|
28
28
|
throw error;
|
|
29
29
|
}
|
|
@@ -36,4 +36,5 @@ async function createCoverageProvider(options, root) {
|
|
|
36
36
|
}
|
|
37
37
|
throw new Error(`Unknown coverage provider: ${options.provider}`);
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
var coverage_CoverageProviderMap = void 0;
|
|
40
|
+
export { coverage_CoverageProviderMap as CoverageProviderMap, createCoverageProvider, loadCoverageProvider };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./723.js";
|
|
3
|
+
var magic_string_es_namespaceObject = {};
|
|
4
|
+
__webpack_require__.r(magic_string_es_namespaceObject);
|
|
5
|
+
__webpack_require__.d(magic_string_es_namespaceObject, {
|
|
6
|
+
Bundle: ()=>Bundle,
|
|
7
|
+
SourceMap: ()=>SourceMap,
|
|
8
|
+
default: ()=>MagicString
|
|
9
|
+
});
|
|
3
10
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js")["Buffer"];
|
|
4
11
|
var comma = ",".charCodeAt(0);
|
|
5
12
|
var semicolon = ";".charCodeAt(0);
|
|
@@ -19,7 +26,7 @@ function encodeInteger(builder, num, relative) {
|
|
|
19
26
|
delta >>>= 5;
|
|
20
27
|
if (delta > 0) clamped |= 32;
|
|
21
28
|
builder.write(intToChar[clamped]);
|
|
22
|
-
}while (delta > 0)
|
|
29
|
+
}while (delta > 0)
|
|
23
30
|
return num;
|
|
24
31
|
}
|
|
25
32
|
var bufLength = 16384;
|
|
@@ -796,7 +803,7 @@ class MagicString {
|
|
|
796
803
|
if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
|
|
797
804
|
if (chunk.content.length) return chunk.content[chunk.content.length - 1];
|
|
798
805
|
if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
|
|
799
|
-
}while (chunk = chunk.previous)
|
|
806
|
+
}while (chunk = chunk.previous)
|
|
800
807
|
if (this.intro.length) return this.intro[this.intro.length - 1];
|
|
801
808
|
return '';
|
|
802
809
|
}
|
|
@@ -821,7 +828,7 @@ class MagicString {
|
|
|
821
828
|
if (-1 !== lineIndex) return chunk.intro.substr(lineIndex + 1) + lineStr;
|
|
822
829
|
lineStr = chunk.intro + lineStr;
|
|
823
830
|
}
|
|
824
|
-
}while (chunk = chunk.previous)
|
|
831
|
+
}while (chunk = chunk.previous)
|
|
825
832
|
lineIndex = this.intro.lastIndexOf(magic_string_es_n);
|
|
826
833
|
if (-1 !== lineIndex) return this.intro.substr(lineIndex + 1) + lineStr;
|
|
827
834
|
return this.intro + lineStr;
|
|
@@ -897,14 +904,14 @@ class MagicString {
|
|
|
897
904
|
isEmpty() {
|
|
898
905
|
let chunk = this.firstChunk;
|
|
899
906
|
do if (chunk.intro.length && chunk.intro.trim() || chunk.content.length && chunk.content.trim() || chunk.outro.length && chunk.outro.trim()) return false;
|
|
900
|
-
while (chunk = chunk.next)
|
|
907
|
+
while (chunk = chunk.next)
|
|
901
908
|
return true;
|
|
902
909
|
}
|
|
903
910
|
length() {
|
|
904
911
|
let chunk = this.firstChunk;
|
|
905
912
|
let length = 0;
|
|
906
913
|
do length += chunk.intro.length + chunk.content.length + chunk.outro.length;
|
|
907
|
-
while (chunk = chunk.next)
|
|
914
|
+
while (chunk = chunk.next)
|
|
908
915
|
return length;
|
|
909
916
|
}
|
|
910
917
|
trimLines() {
|
|
@@ -929,7 +936,7 @@ class MagicString {
|
|
|
929
936
|
}
|
|
930
937
|
if (aborted) return true;
|
|
931
938
|
chunk = chunk.previous;
|
|
932
|
-
}while (chunk)
|
|
939
|
+
}while (chunk)
|
|
933
940
|
return false;
|
|
934
941
|
}
|
|
935
942
|
trimEnd(charType) {
|
|
@@ -952,7 +959,7 @@ class MagicString {
|
|
|
952
959
|
}
|
|
953
960
|
if (aborted) return true;
|
|
954
961
|
chunk = chunk.next;
|
|
955
|
-
}while (chunk)
|
|
962
|
+
}while (chunk)
|
|
956
963
|
return false;
|
|
957
964
|
}
|
|
958
965
|
trimStart(charType) {
|
|
@@ -1188,7 +1195,7 @@ class Bundle {
|
|
|
1188
1195
|
do {
|
|
1189
1196
|
source = this.sources[i++];
|
|
1190
1197
|
if (!source) break;
|
|
1191
|
-
}while (!source.content.trimStartAborted(charType))
|
|
1198
|
+
}while (!source.content.trimStartAborted(charType))
|
|
1192
1199
|
}
|
|
1193
1200
|
return this;
|
|
1194
1201
|
}
|
|
@@ -1202,8 +1209,8 @@ class Bundle {
|
|
|
1202
1209
|
this.intro = this.intro.replace(rx, '');
|
|
1203
1210
|
break;
|
|
1204
1211
|
}
|
|
1205
|
-
}while (!source.content.trimEndAborted(charType))
|
|
1212
|
+
}while (!source.content.trimEndAborted(charType))
|
|
1206
1213
|
return this;
|
|
1207
1214
|
}
|
|
1208
1215
|
}
|
|
1209
|
-
export {
|
|
1216
|
+
export { magic_string_es_namespaceObject };
|