@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.
Files changed (54) hide show
  1. package/LICENSE.md +2 -2
  2. package/dist/{0~89.js → 0~8843.js} +49 -33
  3. package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
  4. package/dist/{0~7882.js → 0~browser~1.js} +46 -47
  5. package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
  6. package/dist/{0~130.js → 0~console.js} +15 -17
  7. package/dist/0~dist.js +1014 -0
  8. package/dist/{0~7583.js → 0~esm.js} +68 -70
  9. package/dist/{0~4403.js → 0~generate.js} +5 -6
  10. package/dist/{0~4809.js → 0~happyDom.js} +2 -2
  11. package/dist/{0~3346.js → 0~interop.js} +0 -1
  12. package/dist/{0~62.js → 0~jsdom.js} +2 -2
  13. package/dist/{0~262.js → 0~lib.js} +4 -1
  14. package/dist/{0~9634.js → 0~listTests.js} +14 -23
  15. package/dist/{0~6923.js → 0~loadEsModule.js} +16 -8
  16. package/dist/{0~5835.js → 0~loadModule.js} +27 -14
  17. package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
  18. package/dist/{0~2255.js → 0~plugin.js} +2 -4
  19. package/dist/{0~6588.js → 0~restart.js} +7 -11
  20. package/dist/{0~2173.js → 0~runTests.js} +27 -19
  21. package/dist/{487.js → 1255.js} +22 -15
  22. package/dist/{6151.js → 1949.js} +3027 -36
  23. package/dist/{6973.js → 255.js} +7 -8
  24. package/dist/{9131.js → 3145.js} +220 -486
  25. package/dist/{1157.js → 4411.js} +35 -35
  26. package/dist/{4484.js → 5040.js} +1 -2
  27. package/dist/{3160.js → 6830.js} +396 -93
  28. package/dist/7011.js +1 -1
  29. package/dist/{1294.js → 7552.js} +28 -22
  30. package/dist/{5734.js → 7704.js} +6 -5
  31. package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
  32. package/dist/browser-runtime/{389.js → 723.js} +3059 -80
  33. package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
  34. package/dist/browser-runtime/index.js +1 -1
  35. package/dist/browser-runtime/rslib-runtime.js +11 -3
  36. package/dist/browser.js +9 -7
  37. package/dist/globalSetupWorker.js +4 -13
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +2 -2
  40. package/dist/mockRuntimeCode.js +15 -9
  41. package/dist/rslib-runtime.js +5 -8
  42. package/dist/worker.js +23 -46
  43. package/package.json +12 -10
  44. package/dist/0~1240.js +0 -951
  45. package/dist/0~1981.js +0 -2
  46. package/dist/3160.js.LICENSE.txt +0 -21
  47. package/dist/4881.js +0 -2
  48. package/dist/6198.js +0 -2
  49. package/dist/721.js +0 -8
  50. /package/dist/{0~7583.js.LICENSE.txt → 0~esm.js.LICENSE.txt} +0 -0
  51. /package/dist/{0~3062.js → 0~utils.js} +0 -0
  52. /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
  53. /package/dist/{4597.js → 1983.js} +0 -0
  54. /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
@@ -1,13 +1,12 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
3
- import { getAbsolutePath, color } from "./3160.js";
4
- import { fileURLToPath } from "./6198.js";
5
- import { rsbuild as __rspack_external__rsbuild_core_1b356efc } from "./4484.js";
6
- import { formatTestEntryName } from "./1157.js";
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 } = __rspack_external__rsbuild_core_1b356efc.rspack.experiments;
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 (!(0, external_node_fs_.existsSync)(setupFilePath)) {
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;