@rstest/core 0.9.0 → 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/LICENSE.md +2 -2
- package/dist/{0~89.js → 0~8843.js} +49 -33
- package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
- package/dist/{0~7882.js → 0~browser~1.js} +46 -47
- package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
- package/dist/{0~130.js → 0~console.js} +15 -17
- package/dist/0~dist.js +1014 -0
- package/dist/{0~7583.js → 0~esm.js} +68 -70
- 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} +16 -8
- package/dist/{0~5835.js → 0~loadModule.js} +27 -14
- 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} +27 -19
- package/dist/{487.js → 1255.js} +22 -15
- package/dist/{6151.js → 1949.js} +3027 -36
- package/dist/{6973.js → 255.js} +7 -8
- package/dist/{9131.js → 3145.js} +220 -486
- package/dist/{1157.js → 4411.js} +35 -35
- package/dist/{4484.js → 5040.js} +1 -2
- package/dist/{3160.js → 6830.js} +396 -93
- 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} +3059 -80
- 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.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/mockRuntimeCode.js +15 -9
- package/dist/rslib-runtime.js +5 -8
- package/dist/worker.js +23 -46
- package/package.json +12 -10
- package/dist/0~1240.js +0 -951
- package/dist/0~1981.js +0 -2
- package/dist/3160.js.LICENSE.txt +0 -21
- package/dist/4881.js +0 -2
- package/dist/6198.js +0 -2
- package/dist/721.js +0 -8
- /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
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;
|