@rstest/core 0.9.1 → 0.9.2
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/dist/{0~89.js → 0~8843.js} +20 -24
- package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
- package/dist/{0~7882.js → 0~browser~1.js} +32 -33
- package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
- package/dist/{0~130.js → 0~console.js} +15 -16
- package/dist/{0~9744.js → 0~dist.js} +57 -57
- package/dist/{0~7583.js → 0~esm.js} +66 -68
- package/dist/{0~4403.js → 0~generate.js} +5 -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} +14 -23
- 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~2255.js → 0~plugin.js} +2 -4
- package/dist/{0~6588.js → 0~restart.js} +7 -11
- package/dist/{0~2173.js → 0~runTests.js} +11 -20
- package/dist/{487.js → 1255.js} +22 -15
- package/dist/{6151.js → 1949.js} +15 -15
- package/dist/{6973.js → 255.js} +7 -8
- package/dist/{9131.js → 3145.js} +75 -404
- package/dist/{1157.js → 4411.js} +35 -35
- package/dist/{4484.js → 5040.js} +1 -2
- package/dist/{3160.js → 6830.js} +389 -81
- package/dist/7011.js +1 -1
- package/dist/{1294.js → 7552.js} +28 -22
- package/dist/{5734.js → 7704.js} +6 -5
- package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
- package/dist/browser-runtime/{389.js → 723.js} +39 -44
- package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
- package/dist/browser-runtime/index.js +1 -1
- package/dist/browser-runtime/rslib-runtime.js +11 -3
- package/dist/browser.js +9 -7
- package/dist/globalSetupWorker.js +4 -13
- package/dist/index.js +2 -2
- package/dist/rslib-runtime.js +5 -8
- package/dist/worker.js +19 -45
- package/package.json +6 -6
- 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~esm.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,13 +1,11 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import
|
|
3
|
-
import "./3160.js";
|
|
4
|
-
const external_node_fs_ = __webpack_require__("node:fs");
|
|
2
|
+
import node_fs from "node:fs";
|
|
5
3
|
const pluginCoverageCore = (coverageOptions)=>({
|
|
6
4
|
name: 'rstest:coverage-core',
|
|
7
5
|
setup: (api)=>{
|
|
8
6
|
api.onBeforeDevCompile(({ isFirstCompile })=>{
|
|
9
7
|
if (isFirstCompile && coverageOptions.clean) {
|
|
10
|
-
if (
|
|
8
|
+
if (node_fs.existsSync(coverageOptions.reportsDirectory)) node_fs.rmSync(coverageOptions.reportsDirectory, {
|
|
11
9
|
recursive: true
|
|
12
10
|
});
|
|
13
11
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
3
|
+
import node_path from "node:path";
|
|
4
|
+
import { color, logger as logger_logger, isTTY } from "./6830.js";
|
|
5
|
+
import { runRest } from "./3145.js";
|
|
6
|
+
import "./4411.js";
|
|
6
7
|
const GLOB_REGEX = /[*?{}[\]()!@+|]/;
|
|
7
8
|
const isGlob = (str)=>GLOB_REGEX.test(str);
|
|
8
9
|
async function createChokidar(pathOrGlobs, root, options) {
|
|
9
|
-
const chokidar = await import("./0~
|
|
10
|
-
watch: mod.watch
|
|
11
|
-
}));
|
|
10
|
+
const chokidar = await import("./0~esm.js");
|
|
12
11
|
const watchFiles = new Set();
|
|
13
12
|
const globPatterns = pathOrGlobs.filter((pathOrGlob)=>{
|
|
14
13
|
if (isGlob(pathOrGlob)) return true;
|
|
@@ -16,9 +15,7 @@ async function createChokidar(pathOrGlobs, root, options) {
|
|
|
16
15
|
return false;
|
|
17
16
|
});
|
|
18
17
|
if (globPatterns.length) {
|
|
19
|
-
const { glob } = await import("./
|
|
20
|
-
glob: mod.glob
|
|
21
|
-
}));
|
|
18
|
+
const { glob } = await import("./4411.js");
|
|
22
19
|
const files = await glob(globPatterns, {
|
|
23
20
|
cwd: root,
|
|
24
21
|
absolute: true
|
|
@@ -27,7 +24,6 @@ async function createChokidar(pathOrGlobs, root, options) {
|
|
|
27
24
|
}
|
|
28
25
|
return chokidar.watch(Array.from(watchFiles), options);
|
|
29
26
|
}
|
|
30
|
-
const external_node_path_ = __webpack_require__("path");
|
|
31
27
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
32
28
|
let cleaners = [];
|
|
33
29
|
const onBeforeRestart = (cleaner)=>{
|
|
@@ -39,7 +35,7 @@ const clearConsole = ()=>{
|
|
|
39
35
|
const beforeRestart = async ({ filePath, root, clear = true })=>{
|
|
40
36
|
if (clear) clearConsole();
|
|
41
37
|
if (filePath) {
|
|
42
|
-
const filename =
|
|
38
|
+
const filename = node_path.relative(root, filePath);
|
|
43
39
|
logger_logger.info(`restarting Rstest as ${color.yellow(filename)} changed\n`);
|
|
44
40
|
} else logger_logger.info('restarting Rstest...\n');
|
|
45
41
|
for (const cleaner of cleaners)await cleaner();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { constants } from "node:os";
|
|
3
|
+
import { resolveShardedEntries, getTestEntries } from "./4411.js";
|
|
4
|
+
import { createCoverageProvider } from "./7704.js";
|
|
5
|
+
import { prepareRsbuild, createPool, createRsbuildServer, runGlobalTeardown, runGlobalSetup } from "./0~8843.js";
|
|
6
|
+
import { loadBrowserModule } from "./0~browserLoader.js";
|
|
7
|
+
import { logger as logger_logger, isTTY, color, clearScreen } from "./6830.js";
|
|
8
8
|
const isCliShortcutsEnabled = ()=>isTTY('stdin');
|
|
9
9
|
async function setupCliShortcuts({ closeServer, runAll, updateSnapshot, runFailedTests, runWithTestNamePattern, runWithFileFilters }) {
|
|
10
10
|
const { createInterface, emitKeypressEvents } = await import("node:readline");
|
|
@@ -154,7 +154,6 @@ async function setupCliShortcuts({ closeServer, runAll, updateSnapshot, runFaile
|
|
|
154
154
|
rl.close();
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
const external_node_os_ = __webpack_require__("node:os");
|
|
158
157
|
async function runBrowserModeTests(context, browserProjects, options) {
|
|
159
158
|
const projectRoots = browserProjects.map((p)=>p.rootPath);
|
|
160
159
|
const { validateBrowserConfig, runBrowserTests } = await loadBrowserModule({
|
|
@@ -164,7 +163,7 @@ async function runBrowserModeTests(context, browserProjects, options) {
|
|
|
164
163
|
return runBrowserTests(context, options);
|
|
165
164
|
}
|
|
166
165
|
const getSignalExitCode = (signal)=>{
|
|
167
|
-
const signalNumber =
|
|
166
|
+
const signalNumber = constants.signals[signal];
|
|
168
167
|
return 'number' == typeof signalNumber ? 128 + signalNumber : 1;
|
|
169
168
|
};
|
|
170
169
|
async function runTests(context) {
|
|
@@ -183,9 +182,7 @@ async function runTests(context) {
|
|
|
183
182
|
if (coverage.enabled && browserResult?.results.length && !browserResult.unhandledErrors?.length) {
|
|
184
183
|
const coverageProvider = await createCoverageProvider(coverage, context.rootPath);
|
|
185
184
|
if (coverageProvider) {
|
|
186
|
-
const { generateCoverage } = await import("./0~
|
|
187
|
-
generateCoverage: mod.generateCoverage
|
|
188
|
-
}));
|
|
185
|
+
const { generateCoverage } = await import("./0~generate.js");
|
|
189
186
|
await generateCoverage(context, browserResult.results, coverageProvider);
|
|
190
187
|
}
|
|
191
188
|
}
|
|
@@ -236,9 +233,7 @@ async function runTests(context) {
|
|
|
236
233
|
if (!hasNodeProjects) return;
|
|
237
234
|
}
|
|
238
235
|
const projects = nodeProjectsToRun;
|
|
239
|
-
const { getSetupFiles } = await import("./
|
|
240
|
-
getSetupFiles: mod.getSetupFiles
|
|
241
|
-
}));
|
|
236
|
+
const { getSetupFiles } = await import("./255.js");
|
|
242
237
|
const setupFiles = Object.fromEntries(projects.map((project)=>{
|
|
243
238
|
const { environmentName, rootPath, normalizedConfig: { setupFiles } } = project;
|
|
244
239
|
return [
|
|
@@ -409,9 +404,7 @@ async function runTests(context) {
|
|
|
409
404
|
filterRerunTestPaths: currentEntries.length ? currentEntries.map((e)=>e.testPath) : void 0
|
|
410
405
|
});
|
|
411
406
|
if (coverageProvider && (!isFailure || coverage.reportOnFailure)) {
|
|
412
|
-
const { generateCoverage } = await import("./0~
|
|
413
|
-
generateCoverage: mod.generateCoverage
|
|
414
|
-
}));
|
|
407
|
+
const { generateCoverage } = await import("./0~generate.js");
|
|
415
408
|
await generateCoverage(context, results, coverageProvider);
|
|
416
409
|
}
|
|
417
410
|
if (isFailure) {
|
|
@@ -449,9 +442,7 @@ async function runTests(context) {
|
|
|
449
442
|
if (enableCliShortcuts) if (snapshotManager.summary.unmatched) logger_logger.log(` ${color.dim('press')} ${color.yellow(color.bold('u'))} ${color.dim('to update snapshot')}${color.dim(', press')} ${color.bold('h')} ${color.dim('to show help')}\n`);
|
|
450
443
|
else logger_logger.log(` ${color.dim('press')} ${color.bold('h')} ${color.dim('to show help')}${color.dim(', press')} ${color.bold('q')} ${color.dim('to quit')}\n`);
|
|
451
444
|
};
|
|
452
|
-
const { onBeforeRestart } = await import("./0~
|
|
453
|
-
onBeforeRestart: mod.onBeforeRestart
|
|
454
|
-
}));
|
|
445
|
+
const { onBeforeRestart } = await import("./0~restart.js");
|
|
455
446
|
onBeforeRestart(async ()=>{
|
|
456
447
|
await runGlobalTeardown();
|
|
457
448
|
await pool.close();
|
package/dist/{487.js → 1255.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
+
import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
|
|
3
|
+
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
2
4
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
|
-
import "./3160.js";
|
|
4
5
|
__webpack_require__.add({
|
|
5
6
|
"../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js" (module) {
|
|
6
7
|
var toString = Object.prototype.toString;
|
|
@@ -34,11 +35,11 @@ __webpack_require__.add({
|
|
|
34
35
|
},
|
|
35
36
|
"../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js" (module, exports, __webpack_require__) {
|
|
36
37
|
module = __webpack_require__.nmd(module);
|
|
37
|
-
var SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js").
|
|
38
|
-
var path = __webpack_require__("path");
|
|
38
|
+
var SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js").YK;
|
|
39
|
+
var path = __webpack_require__("path?7a8d");
|
|
39
40
|
var fs;
|
|
40
41
|
try {
|
|
41
|
-
fs = __webpack_require__("
|
|
42
|
+
fs = __webpack_require__("fs?6bb1");
|
|
42
43
|
if (!fs.existsSync || !fs.readFileSync) fs = null;
|
|
43
44
|
} catch (err) {}
|
|
44
45
|
var bufferFrom = __webpack_require__("../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js");
|
|
@@ -466,7 +467,7 @@ __webpack_require__.add({
|
|
|
466
467
|
ArraySet.prototype.toArray = function ArraySet_toArray() {
|
|
467
468
|
return this._array.slice();
|
|
468
469
|
};
|
|
469
|
-
exports.
|
|
470
|
+
exports.C = ArraySet;
|
|
470
471
|
},
|
|
471
472
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
472
473
|
var base64 = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js");
|
|
@@ -600,7 +601,7 @@ __webpack_require__.add({
|
|
|
600
601
|
}
|
|
601
602
|
return this._array;
|
|
602
603
|
};
|
|
603
|
-
exports.
|
|
604
|
+
exports.P = MappingList;
|
|
604
605
|
},
|
|
605
606
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js" (__unused_rspack_module, exports) {
|
|
606
607
|
function swap(ary, x, y) {
|
|
@@ -627,16 +628,16 @@ __webpack_require__.add({
|
|
|
627
628
|
doQuickSort(ary, comparator, q + 1, r);
|
|
628
629
|
}
|
|
629
630
|
}
|
|
630
|
-
exports.
|
|
631
|
+
exports.g = function(ary, comparator) {
|
|
631
632
|
doQuickSort(ary, comparator, 0, ary.length - 1);
|
|
632
633
|
};
|
|
633
634
|
},
|
|
634
635
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
635
636
|
var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
|
|
636
637
|
var binarySearch = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js");
|
|
637
|
-
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").
|
|
638
|
+
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").C;
|
|
638
639
|
var base64VLQ = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js");
|
|
639
|
-
var quickSort = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js").
|
|
640
|
+
var quickSort = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js").g;
|
|
640
641
|
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
641
642
|
var sourceMap = aSourceMap;
|
|
642
643
|
if ('string' == typeof aSourceMap) sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
@@ -1112,8 +1113,8 @@ __webpack_require__.add({
|
|
|
1112
1113
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1113
1114
|
var base64VLQ = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js");
|
|
1114
1115
|
var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
|
|
1115
|
-
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").
|
|
1116
|
-
var MappingList = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js").
|
|
1116
|
+
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").C;
|
|
1117
|
+
var MappingList = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js").P;
|
|
1117
1118
|
function SourceMapGenerator(aArgs) {
|
|
1118
1119
|
if (!aArgs) aArgs = {};
|
|
1119
1120
|
this._file = util.getArg(aArgs, 'file', null);
|
|
@@ -1313,10 +1314,10 @@ __webpack_require__.add({
|
|
|
1313
1314
|
SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
|
|
1314
1315
|
return JSON.stringify(this.toJSON());
|
|
1315
1316
|
};
|
|
1316
|
-
exports.
|
|
1317
|
+
exports.x = SourceMapGenerator;
|
|
1317
1318
|
},
|
|
1318
1319
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1319
|
-
var SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").
|
|
1320
|
+
var SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").x;
|
|
1320
1321
|
var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
|
|
1321
1322
|
var REGEX_NEWLINE = /(\r?\n)/;
|
|
1322
1323
|
var NEWLINE_CODE = 10;
|
|
@@ -1727,9 +1728,15 @@ __webpack_require__.add({
|
|
|
1727
1728
|
exports.computeSourceURL = computeSourceURL;
|
|
1728
1729
|
},
|
|
1729
1730
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1730
|
-
__webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").
|
|
1731
|
-
exports.
|
|
1731
|
+
__webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").x;
|
|
1732
|
+
exports.YK = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer;
|
|
1732
1733
|
__webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js");
|
|
1734
|
+
},
|
|
1735
|
+
"fs?6bb1" (module) {
|
|
1736
|
+
module.exports = __rspack_external_node_fs_5ea92f0c;
|
|
1737
|
+
},
|
|
1738
|
+
"path?7a8d" (module) {
|
|
1739
|
+
module.exports = __rspack_external_node_path_c5b9b54f;
|
|
1733
1740
|
}
|
|
1734
1741
|
});
|
|
1735
1742
|
const gracefulExit = process.execArgv.some((execArg)=>execArg.startsWith('--perf') || execArg.startsWith('--prof') || execArg.startsWith('--cpu-prof') || execArg.startsWith('--heap-prof') || execArg.startsWith('--diagnostic-dir'));
|
package/dist/{6151.js → 1949.js}
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
/*! LICENSE: 1949.js.LICENSE.txt */
|
|
2
2
|
import "node:module";
|
|
3
|
+
import * as __rspack_external_node_util_1b29d436 from "node:util";
|
|
3
4
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
4
|
-
import {
|
|
5
|
-
import { getRealTimers, TestRegisterError, formatTestError, formatName } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { isatty } from "node:tty";
|
|
6
|
+
import { getRealTimers, TestRegisterError, formatTestError, formatName } from "./7552.js";
|
|
7
|
+
import { getTaskNameWithPrefix, isObject as helper_isObject, castArray, resolve as pathe_M_eThtNZ_resolve, normalize } from "./6830.js";
|
|
8
|
+
import { ROOT_SUITE_NAME } from "./4411.js";
|
|
7
9
|
import { parse } from "./1672.js";
|
|
8
10
|
import "./4899.js";
|
|
9
11
|
__webpack_require__.add({
|
|
@@ -217,7 +219,7 @@ __webpack_require__.add({
|
|
|
217
219
|
isPresent.hrtime = _global.process && "function" == typeof _global.process.hrtime;
|
|
218
220
|
isPresent.hrtimeBigint = isPresent.hrtime && "function" == typeof _global.process.hrtime.bigint;
|
|
219
221
|
isPresent.nextTick = _global.process && "function" == typeof _global.process.nextTick;
|
|
220
|
-
const utilPromisify = _global.process && __webpack_require__("
|
|
222
|
+
const utilPromisify = _global.process && __webpack_require__("util").promisify;
|
|
221
223
|
isPresent.performance = _global.performance && "function" == typeof _global.performance.now;
|
|
222
224
|
const hasPerformancePrototype = _global.Performance && (typeof _global.Performance).match(/^(function|object)$/);
|
|
223
225
|
const hasPerformanceConstructorPrototype = _global.performance && _global.performance.constructor && _global.performance.constructor.prototype;
|
|
@@ -1297,9 +1299,9 @@ __webpack_require__.add({
|
|
|
1297
1299
|
};
|
|
1298
1300
|
}
|
|
1299
1301
|
const defaultImplementation = withGlobal(globalObject);
|
|
1300
|
-
defaultImplementation.timers;
|
|
1301
|
-
defaultImplementation.createClock;
|
|
1302
|
-
defaultImplementation.install;
|
|
1302
|
+
exports.timers = defaultImplementation.timers;
|
|
1303
|
+
exports.createClock = defaultImplementation.createClock;
|
|
1304
|
+
exports.install = defaultImplementation.install;
|
|
1303
1305
|
exports.withGlobal = withGlobal;
|
|
1304
1306
|
},
|
|
1305
1307
|
"../../node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js" (module) {
|
|
@@ -1366,6 +1368,9 @@ __webpack_require__.add({
|
|
|
1366
1368
|
}
|
|
1367
1369
|
return typeDetect;
|
|
1368
1370
|
});
|
|
1371
|
+
},
|
|
1372
|
+
util (module) {
|
|
1373
|
+
module.exports = __rspack_external_node_util_1b29d436;
|
|
1369
1374
|
}
|
|
1370
1375
|
});
|
|
1371
1376
|
var chunk_BVHSVHOK_f = {
|
|
@@ -1563,8 +1568,7 @@ function chunk_BVHSVHOK_p(n = !1) {
|
|
|
1563
1568
|
for (let [r, t] of chunk_BVHSVHOK_h)u[r] = e ? g(d(t[0]), d(t[1]), t[2]) : chunk_BVHSVHOK_a;
|
|
1564
1569
|
return u;
|
|
1565
1570
|
}
|
|
1566
|
-
|
|
1567
|
-
var node_r = void 0 !== process.env.FORCE_TTY || (0, external_node_tty_.isatty)(1);
|
|
1571
|
+
var node_r = void 0 !== process.env.FORCE_TTY || isatty(1);
|
|
1568
1572
|
var node_u = chunk_BVHSVHOK_p(node_r);
|
|
1569
1573
|
function _mergeNamespaces(n, m) {
|
|
1570
1574
|
m.forEach(function(e) {
|
|
@@ -13949,11 +13953,7 @@ function offsetToLineNumber(source, offset) {
|
|
|
13949
13953
|
return line + 1;
|
|
13950
13954
|
}
|
|
13951
13955
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
13952
|
-
const MagicString = (await import("./0~
|
|
13953
|
-
Bundle: mod.Bundle,
|
|
13954
|
-
SourceMap: mod.SourceMap,
|
|
13955
|
-
default: mod.MagicString
|
|
13956
|
-
}))).default;
|
|
13956
|
+
const MagicString = (await import("./0~magic-string.es.js")).default;
|
|
13957
13957
|
const files = new Set(snapshots.map((i)=>i.file));
|
|
13958
13958
|
await Promise.all(Array.from(files).map(async (file)=>{
|
|
13959
13959
|
const snaps = snapshots.filter((i)=>i.file === file);
|
package/dist/{6973.js → 255.js}
RENAMED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { formatTestEntryName } from "./
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { rspack } from "@rsbuild/core";
|
|
5
|
+
import { getAbsolutePath, color } from "./6830.js";
|
|
6
|
+
import { formatTestEntryName } from "./4411.js";
|
|
7
7
|
import { posix } from "./7011.js";
|
|
8
|
-
const external_node_fs_ = __webpack_require__("node:fs");
|
|
9
8
|
const tryResolve = (request, rootPath)=>{
|
|
10
|
-
const { resolver } =
|
|
9
|
+
const { resolver } = rspack.experiments;
|
|
11
10
|
const esmFirstResolver = new resolver.ResolverFactory({
|
|
12
11
|
conditionNames: [
|
|
13
12
|
'node',
|
|
@@ -24,7 +23,7 @@ const getSetupFiles = (setups, rootPath)=>{
|
|
|
24
23
|
const setupFile = filePath.startsWith('file://') ? fileURLToPath(filePath) : filePath;
|
|
25
24
|
const setupFilePath = getAbsolutePath(rootPath, setupFile);
|
|
26
25
|
try {
|
|
27
|
-
if (!
|
|
26
|
+
if (!existsSync(setupFilePath)) {
|
|
28
27
|
let errorMessage = `Setup file ${color.red(setupFile)} not found`;
|
|
29
28
|
if (setupFilePath !== setupFile) errorMessage += color.gray(` (resolved path: ${setupFilePath})`);
|
|
30
29
|
throw errorMessage;
|