@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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/{0~89.js → 0~8843.js} +24 -28
  3. package/dist/{0~1472.js → 0~browserLoader.js} +11 -11
  4. package/dist/{0~7882.js → 0~browser~1.js} +60 -61
  5. package/dist/{0~8426.js → 0~checkThresholds.js} +6 -6
  6. package/dist/{0~7583.js → 0~chokidar.js} +113 -72
  7. package/dist/{0~130.js → 0~console.js} +19 -20
  8. package/dist/{0~9744.js → 0~dist.js} +57 -57
  9. package/dist/{0~4403.js → 0~generate.js} +9 -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} +15 -24
  15. package/dist/{0~6923.js → 0~loadEsModule.js} +7 -7
  16. package/dist/{0~5835.js → 0~loadModule.js} +11 -11
  17. package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
  18. package/dist/0~mergeReports.js +127 -0
  19. package/dist/{0~2255.js → 0~plugin.js} +2 -4
  20. package/dist/{0~6588.js → 0~restart.js} +8 -12
  21. package/dist/{0~2173.js → 0~runTests.js} +51 -60
  22. package/dist/{487.js → 1255.js} +22 -15
  23. package/dist/{6151.js → 1949.js} +41 -25
  24. package/dist/{6973.js → 255.js} +9 -10
  25. package/dist/{9131.js → 3145.js} +229 -479
  26. package/dist/{1157.js → 4411.js} +37 -37
  27. package/dist/{4484.js → 5040.js} +1 -2
  28. package/dist/{3160.js → 6830.js} +429 -106
  29. package/dist/7011.js +1 -1
  30. package/dist/{1294.js → 7552.js} +106 -83
  31. package/dist/{5734.js → 7704.js} +7 -6
  32. package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
  33. package/dist/browser-runtime/{389.js → 723.js} +178 -134
  34. package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
  35. package/dist/browser-runtime/index.d.ts +40 -5
  36. package/dist/browser-runtime/index.js +1 -1
  37. package/dist/browser-runtime/rslib-runtime.js +11 -3
  38. package/dist/browser.d.ts +40 -5
  39. package/dist/browser.js +9 -7
  40. package/dist/globalSetupWorker.js +7 -14
  41. package/dist/index.d.ts +53 -6
  42. package/dist/index.js +2 -2
  43. package/dist/rslib-runtime.js +5 -8
  44. package/dist/worker.d.ts +30 -3
  45. package/dist/worker.js +20 -46
  46. package/package.json +19 -18
  47. package/dist/3160.js.LICENSE.txt +0 -21
  48. package/dist/4881.js +0 -2
  49. package/dist/6198.js +0 -2
  50. /package/dist/{0~7583.js.LICENSE.txt → 0~chokidar.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,7 +1,11 @@
1
1
  import "node:module";
2
2
  import { __webpack_require__ } from "./rslib-runtime.js";
3
+ import { styleText } from "node:util";
4
+ import node_process, { stdin, stdout } from "node:process";
3
5
  import node_readline, { clearLine, createInterface, emitKeypressEvents, moveCursor } from "node:readline";
4
- import { stdout, node_process, stdin } from "./3160.js";
6
+ import { ReadStream } from "node:tty";
7
+ import "node:fs";
8
+ import "node:path";
5
9
  __webpack_require__.add({
6
10
  "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js" (module) {
7
11
  const ESC = '\x1B';
@@ -58,9 +62,7 @@ __webpack_require__.add({
58
62
  };
59
63
  }
60
64
  });
61
- const external_node_util_ = __webpack_require__("node:util");
62
65
  const src = __webpack_require__("../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
63
- const external_node_tty_ = __webpack_require__("node:tty");
64
66
  function x(t, e, s) {
65
67
  if (!s.some((u)=>!u.disabled)) return t;
66
68
  const i = t + e, r = Math.max(s.length - 1, 0), n = i < 0 ? r : i > r ? 0 : i;
@@ -293,7 +295,7 @@ function xt({ input: t = stdin, output: e = stdout, overwrite: s = !0, hideCurso
293
295
  prompt: "",
294
296
  tabSize: 1
295
297
  });
296
- emitKeypressEvents(t, r), t instanceof external_node_tty_.ReadStream && t.isTTY && t.setRawMode(!0);
298
+ emitKeypressEvents(t, r), t instanceof ReadStream && t.isTTY && t.setRawMode(!0);
297
299
  const n = (u, { name: a, sequence: l })=>{
298
300
  const E = String(u);
299
301
  if (H([
@@ -313,7 +315,7 @@ function xt({ input: t = stdin, output: e = stdout, overwrite: s = !0, hideCurso
313
315
  });
314
316
  };
315
317
  return i && e.write(src.cursor.hide), t.once("keypress", n), ()=>{
316
- t.off("keypress", n), i && e.write(src.cursor.show), t instanceof external_node_tty_.ReadStream && t.isTTY && !bt && t.setRawMode(!1), r.terminal = !1, r.close();
318
+ t.off("keypress", n), i && e.write(src.cursor.show), t instanceof ReadStream && t.isTTY && !bt && t.setRawMode(!1), r.terminal = !1, r.close();
317
319
  };
318
320
  }
319
321
  const dist_rt = (t)=>"columns" in t && "number" == typeof t.columns ? t.columns : 80, dist_nt = (t)=>"rows" in t && "number" == typeof t.rows ? t.rows : 20;
@@ -522,8 +524,6 @@ class Tt extends dist_B {
522
524
  });
523
525
  }
524
526
  }
525
- __webpack_require__("node:fs");
526
- __webpack_require__("path");
527
527
  function dist_pt() {
528
528
  return "win32" !== node_process.platform ? "linux" !== node_process.env.TERM : !!node_process.env.CI || !!node_process.env.WT_SESSION || !!node_process.env.TERMINUS_SUBLIME || "{cmd::Cmder}" === node_process.env.ConEmuTask || "Terminus-Sublime" === node_process.env.TERM_PROGRAM || "vscode" === node_process.env.TERM_PROGRAM || "xterm-256color" === node_process.env.TERM || "alacritty" === node_process.env.TERM || "JetBrains-JediTerm" === node_process.env.TERMINAL_EMULATOR;
529
529
  }
@@ -531,25 +531,25 @@ const ee = dist_pt(), ce = ()=>"true" === process.env.CI, I = (e, r)=>ee ? e : r
531
531
  switch(e){
532
532
  case "initial":
533
533
  case "active":
534
- return (0, external_node_util_.styleText)("cyan", Re);
534
+ return styleText("cyan", Re);
535
535
  case "cancel":
536
- return (0, external_node_util_.styleText)("red", $e);
536
+ return styleText("red", $e);
537
537
  case "error":
538
- return (0, external_node_util_.styleText)("yellow", de);
538
+ return styleText("yellow", de);
539
539
  case "submit":
540
- return (0, external_node_util_.styleText)("green", dist_V);
540
+ return styleText("green", dist_V);
541
541
  }
542
542
  }, ve = (e)=>{
543
543
  switch(e){
544
544
  case "initial":
545
545
  case "active":
546
- return (0, external_node_util_.styleText)("cyan", dist_h);
546
+ return styleText("cyan", dist_h);
547
547
  case "cancel":
548
- return (0, external_node_util_.styleText)("red", dist_h);
548
+ return styleText("red", dist_h);
549
549
  case "error":
550
- return (0, external_node_util_.styleText)("yellow", dist_h);
550
+ return styleText("yellow", dist_h);
551
551
  case "submit":
552
- return (0, external_node_util_.styleText)("green", dist_h);
552
+ return styleText("green", dist_h);
553
553
  }
554
554
  }, dist_mt = (e)=>161 === e || 164 === e || 167 === e || 168 === e || 170 === e || 173 === e || 174 === e || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || 198 === e || 208 === e || 215 === e || 216 === e || e >= 222 && e <= 225 || 230 === e || e >= 232 && e <= 234 || 236 === e || 237 === e || 240 === e || 242 === e || 243 === e || e >= 247 && e <= 250 || 252 === e || 254 === e || 257 === e || 273 === e || 275 === e || 283 === e || 294 === e || 295 === e || 299 === e || e >= 305 && e <= 307 || 312 === e || e >= 319 && e <= 322 || 324 === e || e >= 328 && e <= 331 || 333 === e || 338 === e || 339 === e || 358 === e || 359 === e || 363 === e || 462 === e || 464 === e || 466 === e || 468 === e || 470 === e || 472 === e || 474 === e || 476 === e || 593 === e || 609 === e || 708 === e || 711 === e || e >= 713 && e <= 715 || 717 === e || 720 === e || e >= 728 && e <= 731 || 733 === e || 735 === e || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || 1025 === e || e >= 1040 && e <= 1103 || 1105 === e || 8208 === e || e >= 8211 && e <= 8214 || 8216 === e || 8217 === e || 8220 === e || 8221 === e || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || 8240 === e || 8242 === e || 8243 === e || 8245 === e || 8251 === e || 8254 === e || 8308 === e || 8319 === e || e >= 8321 && e <= 8324 || 8364 === e || 8451 === e || 8453 === e || 8457 === e || 8467 === e || 8470 === e || 8481 === e || 8482 === e || 8486 === e || 8491 === e || 8531 === e || 8532 === e || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || 8585 === e || e >= 8592 && e <= 8601 || 8632 === e || 8633 === e || 8658 === e || 8660 === e || 8679 === e || 8704 === e || 8706 === e || 8707 === e || 8711 === e || 8712 === e || 8715 === e || 8719 === e || 8721 === e || 8725 === e || 8730 === e || e >= 8733 && e <= 8736 || 8739 === e || 8741 === e || e >= 8743 && e <= 8748 || 8750 === e || e >= 8756 && e <= 8759 || 8764 === e || 8765 === e || 8776 === e || 8780 === e || 8786 === e || 8800 === e || 8801 === e || e >= 8804 && e <= 8807 || 8810 === e || 8811 === e || 8814 === e || 8815 === e || 8834 === e || 8835 === e || 8838 === e || 8839 === e || 8853 === e || 8857 === e || 8869 === e || 8895 === e || 8978 === e || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || 9632 === e || 9633 === e || e >= 9635 && e <= 9641 || 9650 === e || 9651 === e || 9654 === e || 9655 === e || 9660 === e || 9661 === e || 9664 === e || 9665 === e || e >= 9670 && e <= 9672 || 9675 === e || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || 9711 === e || 9733 === e || 9734 === e || 9737 === e || 9742 === e || 9743 === e || 9756 === e || 9758 === e || 9792 === e || 9794 === e || 9824 === e || 9825 === e || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || 9836 === e || 9837 === e || 9839 === e || 9886 === e || 9887 === e || 9919 === e || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || 9955 === e || 9960 === e || 9961 === e || e >= 9963 && e <= 9969 || 9972 === e || e >= 9974 && e <= 9977 || 9979 === e || 9980 === e || 9982 === e || 9983 === e || 10045 === e || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || 65533 === e || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || 127375 === e || 127376 === e || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, dist_gt = (e)=>12288 === e || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, dist_ft = (e)=>e >= 4352 && e <= 4447 || 8986 === e || 8987 === e || 9001 === e || 9002 === e || e >= 9193 && e <= 9196 || 9200 === e || 9203 === e || 9725 === e || 9726 === e || 9748 === e || 9749 === e || e >= 9800 && e <= 9811 || 9855 === e || 9875 === e || 9889 === e || 9898 === e || 9899 === e || 9917 === e || 9918 === e || 9924 === e || 9925 === e || 9934 === e || 9940 === e || 9962 === e || 9970 === e || 9971 === e || 9973 === e || 9978 === e || 9981 === e || 9989 === e || 9994 === e || 9995 === e || 10024 === e || 10060 === e || 10062 === e || e >= 10067 && e <= 10069 || 10071 === e || e >= 10133 && e <= 10135 || 10160 === e || 10175 === e || 11035 === e || 11036 === e || 11088 === e || 11093 === e || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || 94192 === e || 94193 === e || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || 110589 === e || 110590 === e || e >= 110592 && e <= 110882 || 110898 === e || e >= 110928 && e <= 110930 || 110933 === e || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || 126980 === e || 127183 === e || 127374 === e || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || 127568 === e || 127569 === e || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || 127988 === e || e >= 127992 && e <= 128062 || 128064 === e || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || 128378 === e || 128405 === e || 128406 === e || 128420 === e || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || 128716 === e || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || 128747 === e || 128748 === e || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || 129008 === e || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, we = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, re = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, ie = /\t{1,1000}/y, Ae = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu, ne = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, dist_Ft = /\p{M}+/gu, dist_yt = {
555
555
  limit: 1 / 0,
@@ -714,7 +714,7 @@ const dist_bt = (e, r, s, i, a)=>{
714
714
  removals: u
715
715
  };
716
716
  }, dist_X = ({ cursor: e, options: r, style: s, output: i = process.stdout, maxItems: a = 1 / 0, columnPadding: o = 0, rowPadding: u = 4 })=>{
717
- const l = dist_rt(i) - o, n = dist_nt(i), c = (0, external_node_util_.styleText)("dim", "..."), p = Math.max(n - u, 0), f = Math.max(Math.min(a, p), 5);
717
+ const l = dist_rt(i) - o, n = dist_nt(i), c = styleText("dim", "..."), p = Math.max(n - u, 0), f = Math.max(Math.min(a, p), 5);
718
718
  let g = 0;
719
719
  e >= f - 3 && (g = Math.max(Math.min(e - f + 3, r.length - f), 0));
720
720
  let E = f < r.length && g > 0, $ = f < r.length && g + f < r.length;
@@ -750,30 +750,30 @@ const Rt = (e)=>{
750
750
  output: e.output,
751
751
  initialValue: e.initialValue ?? !0,
752
752
  render () {
753
- const i = e.withGuide ?? dist_.withGuide, a = `${i ? `${(0, external_node_util_.styleText)("gray", dist_h)}
753
+ const i = e.withGuide ?? dist_.withGuide, a = `${i ? `${styleText("gray", dist_h)}
754
754
  ` : ""}${dist_W(this.state)} ${e.message}
755
755
  `, o = this.value ? r : s;
756
756
  switch(this.state){
757
757
  case "submit":
758
758
  {
759
- const u = i ? `${(0, external_node_util_.styleText)("gray", dist_h)} ` : "";
760
- return `${a}${u}${(0, external_node_util_.styleText)("dim", o)}`;
759
+ const u = i ? `${styleText("gray", dist_h)} ` : "";
760
+ return `${a}${u}${styleText("dim", o)}`;
761
761
  }
762
762
  case "cancel":
763
763
  {
764
- const u = i ? `${(0, external_node_util_.styleText)("gray", dist_h)} ` : "";
765
- return `${a}${u}${(0, external_node_util_.styleText)([
764
+ const u = i ? `${styleText("gray", dist_h)} ` : "";
765
+ return `${a}${u}${styleText([
766
766
  "strikethrough",
767
767
  "dim"
768
768
  ], o)}${i ? `
769
- ${(0, external_node_util_.styleText)("gray", dist_h)}` : ""}`;
769
+ ${styleText("gray", dist_h)}` : ""}`;
770
770
  }
771
771
  default:
772
772
  {
773
- const u = i ? `${(0, external_node_util_.styleText)("cyan", dist_h)} ` : "", l = i ? (0, external_node_util_.styleText)("cyan", dist_x) : "";
774
- return `${a}${u}${this.value ? `${(0, external_node_util_.styleText)("green", dist_z)} ${r}` : `${(0, external_node_util_.styleText)("dim", dist_H)} ${(0, external_node_util_.styleText)("dim", r)}`}${e.vertical ? i ? `
775
- ${(0, external_node_util_.styleText)("cyan", dist_h)} ` : `
776
- ` : ` ${(0, external_node_util_.styleText)("dim", "/")} `}${this.value ? `${(0, external_node_util_.styleText)("dim", dist_H)} ${(0, external_node_util_.styleText)("dim", s)}` : `${(0, external_node_util_.styleText)("green", dist_z)} ${s}`}
773
+ const u = i ? `${styleText("cyan", dist_h)} ` : "", l = i ? styleText("cyan", dist_x) : "";
774
+ return `${a}${u}${this.value ? `${styleText("green", dist_z)} ${r}` : `${styleText("dim", dist_H)} ${styleText("dim", r)}`}${e.vertical ? i ? `
775
+ ${styleText("cyan", dist_h)} ` : `
776
+ ` : ` ${styleText("dim", "/")} `}${this.value ? `${styleText("dim", dist_H)} ${styleText("dim", s)}` : `${styleText("green", dist_z)} ${s}`}
777
777
  ${l}
778
778
  `;
779
779
  }
@@ -781,7 +781,7 @@ ${l}
781
781
  }
782
782
  }).prompt();
783
783
  }, R = {
784
- message: (e = [], { symbol: r = (0, external_node_util_.styleText)("gray", dist_h), secondarySymbol: s = (0, external_node_util_.styleText)("gray", dist_h), output: i = process.stdout, spacing: a = 1, withGuide: o } = {})=>{
784
+ message: (e = [], { symbol: r = styleText("gray", dist_h), secondarySymbol: s = styleText("gray", dist_h), output: i = process.stdout, spacing: a = 1, withGuide: o } = {})=>{
785
785
  const u = [], l = o ?? dist_.withGuide, n = l ? s : "", c = l ? `${r} ` : "", p = l ? `${s} ` : "";
786
786
  for(let g = 0; g < a; g++)u.push(n);
787
787
  const f = Array.isArray(e) ? e : e.split(`
@@ -798,25 +798,25 @@ ${l}
798
798
  info: (e, r)=>{
799
799
  R.message(e, {
800
800
  ...r,
801
- symbol: (0, external_node_util_.styleText)("blue", fe)
801
+ symbol: styleText("blue", fe)
802
802
  });
803
803
  },
804
804
  success: (e, r)=>{
805
805
  R.message(e, {
806
806
  ...r,
807
- symbol: (0, external_node_util_.styleText)("green", Fe)
807
+ symbol: styleText("green", Fe)
808
808
  });
809
809
  },
810
810
  step: (e, r)=>{
811
811
  R.message(e, {
812
812
  ...r,
813
- symbol: (0, external_node_util_.styleText)("green", dist_V)
813
+ symbol: styleText("green", dist_V)
814
814
  });
815
815
  },
816
816
  warn: (e, r)=>{
817
817
  R.message(e, {
818
818
  ...r,
819
- symbol: (0, external_node_util_.styleText)("yellow", ye)
819
+ symbol: styleText("yellow", ye)
820
820
  });
821
821
  },
822
822
  warning: (e, r)=>{
@@ -825,25 +825,25 @@ ${l}
825
825
  error: (e, r)=>{
826
826
  R.message(e, {
827
827
  ...r,
828
- symbol: (0, external_node_util_.styleText)("red", Ee)
828
+ symbol: styleText("red", Ee)
829
829
  });
830
830
  }
831
831
  }, Nt = (e = "", r)=>{
832
- const s = r?.output ?? process.stdout, i = r?.withGuide ?? dist_.withGuide ? `${(0, external_node_util_.styleText)("gray", dist_x)} ` : "";
833
- s.write(`${i}${(0, external_node_util_.styleText)("red", e)}
832
+ const s = r?.output ?? process.stdout, i = r?.withGuide ?? dist_.withGuide ? `${styleText("gray", dist_x)} ` : "";
833
+ s.write(`${i}${styleText("red", e)}
834
834
 
835
835
  `);
836
836
  }, dist_Wt = (e = "", r)=>{
837
- const s = r?.output ?? process.stdout, i = r?.withGuide ?? dist_.withGuide ? `${(0, external_node_util_.styleText)("gray", he)} ` : "";
837
+ const s = r?.output ?? process.stdout, i = r?.withGuide ?? dist_.withGuide ? `${styleText("gray", he)} ` : "";
838
838
  s.write(`${i}${e}
839
839
  `);
840
840
  }, Gt = (e = "", r)=>{
841
- const s = r?.output ?? process.stdout, i = r?.withGuide ?? dist_.withGuide ? `${(0, external_node_util_.styleText)("gray", dist_h)}
842
- ${(0, external_node_util_.styleText)("gray", dist_x)} ` : "";
841
+ const s = r?.output ?? process.stdout, i = r?.withGuide ?? dist_.withGuide ? `${styleText("gray", dist_h)}
842
+ ${styleText("gray", dist_x)} ` : "";
843
843
  s.write(`${i}${e}
844
844
 
845
845
  `);
846
- }, jt = (e)=>(0, external_node_util_.styleText)("dim", e), dist_kt = (e, r, s)=>{
846
+ }, jt = (e)=>styleText("dim", e), dist_kt = (e, r, s)=>{
847
847
  const i = {
848
848
  hard: !0,
849
849
  trim: !1
@@ -859,14 +859,14 @@ ${(0, external_node_util_.styleText)("gray", dist_x)} ` : "";
859
859
  ], l = D(r), n = Math.max(u.reduce((g, E)=>{
860
860
  const $ = D(E);
861
861
  return $ > g ? $ : g;
862
- }, 0), l) + 2, c = u.map((g)=>`${(0, external_node_util_.styleText)("gray", dist_h)} ${g}${" ".repeat(n - D(g))}${(0, external_node_util_.styleText)("gray", dist_h)}`).join(`
863
- `), p = a ? `${(0, external_node_util_.styleText)("gray", dist_h)}
862
+ }, 0), l) + 2, c = u.map((g)=>`${styleText("gray", dist_h)} ${g}${" ".repeat(n - D(g))}${styleText("gray", dist_h)}`).join(`
863
+ `), p = a ? `${styleText("gray", dist_h)}
864
864
  ` : "", f = a ? We : ge;
865
- i.write(`${p}${(0, external_node_util_.styleText)("green", dist_V)} ${(0, external_node_util_.styleText)("reset", r)} ${(0, external_node_util_.styleText)("gray", se.repeat(Math.max(n - l - 1, 1)) + pe)}
865
+ i.write(`${p}${styleText("green", dist_V)} ${styleText("reset", r)} ${styleText("gray", se.repeat(Math.max(n - l - 1, 1)) + pe)}
866
866
  ${c}
867
- ${(0, external_node_util_.styleText)("gray", f + se.repeat(n + 2) + me)}
867
+ ${styleText("gray", f + se.repeat(n + 2) + me)}
868
868
  `);
869
- }, Kt = (e)=>(0, external_node_util_.styleText)("magenta", e), be = ({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: a, frames: o = ee ? [
869
+ }, Kt = (e)=>styleText("magenta", e), be = ({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: a, frames: o = ee ? [
870
870
  "\u25D2",
871
871
  "\u25D0",
872
872
  "\u25D3",
@@ -902,7 +902,7 @@ ${(0, external_node_util_.styleText)("gray", f + se.repeat(n + 2) + me)}
902
902
  }, O = n.withGuide ?? dist_.withGuide, le = (B = "")=>{
903
903
  g = !0, p = xt({
904
904
  output: s
905
- }), $ = T(B), d = performance.now(), O && s.write(`${(0, external_node_util_.styleText)("gray", dist_h)}
905
+ }), $ = T(B), d = performance.now(), O && s.write(`${styleText("gray", dist_h)}
906
906
  `);
907
907
  let P = 0, G = 0;
908
908
  b(), f = setInterval(()=>{
@@ -925,7 +925,7 @@ ${(0, external_node_util_.styleText)("gray", f + se.repeat(n + 2) + me)}
925
925
  }, k = (B = "", P = 0, G = !1)=>{
926
926
  if (!g) return;
927
927
  g = !1, clearInterval(f), S();
928
- const L = 0 === P ? (0, external_node_util_.styleText)("green", dist_V) : 1 === P ? (0, external_node_util_.styleText)("red", $e) : (0, external_node_util_.styleText)("red", de);
928
+ const L = 0 === P ? styleText("green", dist_V) : 1 === P ? styleText("red", $e) : styleText("red", de);
929
929
  $ = B ?? $, G || ("timer" === e ? s.write(`${L} ${$} ${M(d)}
930
930
  `) : s.write(`${L} ${$}
931
931
  `)), w(), p();
@@ -953,18 +953,18 @@ const oe = (e, r)=>e.includes(`
953
953
  const a = s.label ?? String(s.value);
954
954
  switch(i){
955
955
  case "disabled":
956
- return `${(0, external_node_util_.styleText)("gray", dist_H)} ${oe(a, (o)=>(0, external_node_util_.styleText)("gray", o))}${s.hint ? ` ${(0, external_node_util_.styleText)("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
956
+ return `${styleText("gray", dist_H)} ${oe(a, (o)=>styleText("gray", o))}${s.hint ? ` ${styleText("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
957
957
  case "selected":
958
- return `${oe(a, (o)=>(0, external_node_util_.styleText)("dim", o))}`;
958
+ return `${oe(a, (o)=>styleText("dim", o))}`;
959
959
  case "active":
960
- return `${(0, external_node_util_.styleText)("green", dist_z)} ${a}${s.hint ? ` ${(0, external_node_util_.styleText)("dim", `(${s.hint})`)}` : ""}`;
960
+ return `${styleText("green", dist_z)} ${a}${s.hint ? ` ${styleText("dim", `(${s.hint})`)}` : ""}`;
961
961
  case "cancelled":
962
- return `${oe(a, (o)=>(0, external_node_util_.styleText)([
962
+ return `${oe(a, (o)=>styleText([
963
963
  "strikethrough",
964
964
  "dim"
965
965
  ], o))}`;
966
966
  default:
967
- return `${(0, external_node_util_.styleText)("dim", dist_H)} ${oe(a, (o)=>(0, external_node_util_.styleText)("dim", o))}`;
967
+ return `${styleText("dim", dist_H)} ${oe(a, (o)=>styleText("dim", o))}`;
968
968
  }
969
969
  };
970
970
  return new Tt({
@@ -974,24 +974,24 @@ const oe = (e, r)=>e.includes(`
974
974
  output: e.output,
975
975
  initialValue: e.initialValue,
976
976
  render () {
977
- const s = e.withGuide ?? dist_.withGuide, i = `${dist_W(this.state)} `, a = `${ve(this.state)} `, o = Bt(e.output, e.message, a, i), u = `${s ? `${(0, external_node_util_.styleText)("gray", dist_h)}
977
+ const s = e.withGuide ?? dist_.withGuide, i = `${dist_W(this.state)} `, a = `${ve(this.state)} `, o = Bt(e.output, e.message, a, i), u = `${s ? `${styleText("gray", dist_h)}
978
978
  ` : ""}${o}
979
979
  `;
980
980
  switch(this.state){
981
981
  case "submit":
982
982
  {
983
- const l = s ? `${(0, external_node_util_.styleText)("gray", dist_h)} ` : "", n = Bt(e.output, r(this.options[this.cursor], "selected"), l);
983
+ const l = s ? `${styleText("gray", dist_h)} ` : "", n = Bt(e.output, r(this.options[this.cursor], "selected"), l);
984
984
  return `${u}${n}`;
985
985
  }
986
986
  case "cancel":
987
987
  {
988
- const l = s ? `${(0, external_node_util_.styleText)("gray", dist_h)} ` : "", n = Bt(e.output, r(this.options[this.cursor], "cancelled"), l);
988
+ const l = s ? `${styleText("gray", dist_h)} ` : "", n = Bt(e.output, r(this.options[this.cursor], "cancelled"), l);
989
989
  return `${u}${n}${s ? `
990
- ${(0, external_node_util_.styleText)("gray", dist_h)}` : ""}`;
990
+ ${styleText("gray", dist_h)}` : ""}`;
991
991
  }
992
992
  default:
993
993
  {
994
- const l = s ? `${(0, external_node_util_.styleText)("cyan", dist_h)} ` : "", n = s ? (0, external_node_util_.styleText)("cyan", dist_x) : "", c = u.split(`
994
+ const l = s ? `${styleText("cyan", dist_h)} ` : "", n = s ? styleText("cyan", dist_x) : "", c = u.split(`
995
995
  `).length, p = s ? 2 : 1;
996
996
  return `${u}${l}${dist_X({
997
997
  output: e.output,
@@ -1010,5 +1010,5 @@ ${n}
1010
1010
  }
1011
1011
  }).prompt();
1012
1012
  };
1013
- (0, external_node_util_.styleText)("gray", dist_h);
1014
- export { Ct, Gt, Jt, Nt, R, Rt, be, dist_Vt, dist_Wt };
1013
+ styleText("gray", dist_h);
1014
+ export { Ct as isCancel, Gt as outro, Jt as select, Nt as cancel, R as log, Rt as confirm, be as spinner, dist_Vt as note, dist_Wt as intro };
@@ -1,6 +1,6 @@
1
1
  import "node:module";
2
- import { isDynamicPattern, glob } from "./1157.js";
3
- import { normalize, logger as logger_logger } from "./3160.js";
2
+ import { isDynamicPattern, glob } from "./4411.js";
3
+ import { normalize, logger as logger_logger } from "./6830.js";
4
4
  const getIncludedFiles = async (coverage, rootPath, fs)=>{
5
5
  const ignoredPatterns = coverage.exclude?.filter((item)=>isDynamicPattern(item) || item.startsWith(rootPath) || item.startsWith('./'));
6
6
  const allFiles = await glob(coverage.include, {
@@ -22,6 +22,10 @@ async function generateCoverage(context, results, coverageProvider) {
22
22
  try {
23
23
  const finalCoverageMap = coverageProvider.createCoverageMap();
24
24
  for (const result of results)if (result.coverage) finalCoverageMap.merge(result.coverage);
25
+ if (!coverage.allowExternal) finalCoverageMap.filter((filePath)=>{
26
+ const normalizedFile = normalize(filePath);
27
+ return normalizedFile.startsWith(normalize(rootPath));
28
+ });
25
29
  if (coverage.include?.length) {
26
30
  const coveredFiles = finalCoverageMap.files().map(normalize);
27
31
  let isTimeout = false;
@@ -41,9 +45,7 @@ async function generateCoverage(context, results, coverageProvider) {
41
45
  }
42
46
  await coverageProvider.generateReports(finalCoverageMap, coverage);
43
47
  if (coverage.thresholds) {
44
- const { checkThresholds } = await import("./0~8426.js").then((mod)=>({
45
- checkThresholds: mod.checkThresholds
46
- }));
48
+ const { checkThresholds } = await import("./0~checkThresholds.js");
47
49
  const thresholdResult = checkThresholds({
48
50
  coverageMap: finalCoverageMap,
49
51
  coverageProvider,
@@ -71,4 +73,5 @@ async function generateCoverageForUntestedFiles(environmentName, uncoveredFiles,
71
73
  coverageMap.addFileCoverage(coverageData);
72
74
  });
73
75
  }
74
- export { generateCoverage };
76
+ var generate_getIncludedFiles = void 0;
77
+ export { generateCoverage, generate_getIncludedFiles as getIncludedFiles };
@@ -1,6 +1,6 @@
1
1
  import "node:module";
2
- import { checkPkgInstalled } from "./1294.js";
3
- import { installGlobal, addDefaultErrorHandler } from "./0~3062.js";
2
+ import { checkPkgInstalled } from "./7552.js";
3
+ import { installGlobal, addDefaultErrorHandler } from "./0~utils.js";
4
4
  const environment = {
5
5
  name: 'happy-dom',
6
6
  setup: async (global, options = {})=>{
@@ -41,5 +41,4 @@ const asModule = async (something, defaultExport, context, unlinked)=>{
41
41
  await m.evaluate();
42
42
  return m;
43
43
  };
44
- export { default as node_vm } from "node:vm";
45
44
  export { asModule, interopModule, shouldInterop };
@@ -1,6 +1,6 @@
1
1
  import "node:module";
2
- import { checkPkgInstalled } from "./1294.js";
3
- import { installGlobal, addDefaultErrorHandler } from "./0~3062.js";
2
+ import { checkPkgInstalled } from "./7552.js";
3
+ import { installGlobal, addDefaultErrorHandler } from "./0~utils.js";
4
4
  const environment = {
5
5
  name: 'jsdom',
6
6
  setup: async (global, options)=>{
@@ -1,6 +1,6 @@
1
1
  import "node:module";
2
2
  import { __webpack_require__ } from "./rslib-runtime.js";
3
- import "./3160.js";
3
+ import "./6830.js";
4
4
  __webpack_require__.add({
5
5
  "../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js" (__unused_rspack_module, exports) {
6
6
  Object.defineProperty(exports, "__esModule", {
@@ -1340,3 +1340,6 @@ __webpack_require__.add({
1340
1340
  }
1341
1341
  }
1342
1342
  });
1343
+ const lib = __webpack_require__("../../node_modules/.pnpm/@babel+code-frame@7.29.0/node_modules/@babel/code-frame/lib/index.js");
1344
+ var codeFrameColumns = lib.codeFrameColumns;
1345
+ export { codeFrameColumns };
@@ -1,14 +1,11 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
3
- import { logger as logger_logger, getTaskNameWithPrefix, color, bgColor } from "./3160.js";
4
- import { prepareRsbuild, createPool, createRsbuildServer, runGlobalTeardown, runGlobalSetup } from "./0~89.js";
5
- import { getTestEntries, resolveShardedEntries, prettyTestPath, ROOT_SUITE_NAME } from "./1157.js";
6
- const external_node_fs_ = __webpack_require__("node:fs");
7
- const external_node_path_ = __webpack_require__("path");
2
+ import { mkdirSync, writeFileSync } from "node:fs";
3
+ import { dirname, isAbsolute, join, relative } from "node:path";
4
+ import { prepareRsbuild, createPool, createRsbuildServer, runGlobalTeardown, runGlobalSetup } from "./0~8843.js";
5
+ import { getTestEntries, resolveShardedEntries, prettyTestPath, ROOT_SUITE_NAME } from "./4411.js";
6
+ import { logger as logger_logger, getTaskNameWithPrefix, color as logger_color, bgColor } from "./6830.js";
8
7
  const collectNodeTests = async ({ context, nodeProjects, globTestSourceEntries })=>{
9
- const { getSetupFiles } = await import("./6973.js").then((mod)=>({
10
- getSetupFiles: mod.getSetupFiles
11
- }));
8
+ const { getSetupFiles } = await import("./255.js");
12
9
  if (0 === nodeProjects.length) return {
13
10
  list: [],
14
11
  getSourceMap: async ()=>null,
@@ -103,9 +100,7 @@ const collectBrowserTests = async ({ context, browserProjects, shardedEntries })
103
100
  list: [],
104
101
  close: async ()=>void 0
105
102
  };
106
- const { loadBrowserModule } = await import("./0~1472.js").then((mod)=>({
107
- loadBrowserModule: mod.loadBrowserModule
108
- }));
103
+ const { loadBrowserModule } = await import("./0~browserLoader.js");
109
104
  const projectRoots = browserProjects.map((p)=>p.rootPath);
110
105
  const { validateBrowserConfig, listBrowserTests } = await loadBrowserModule({
111
106
  projectRoots
@@ -215,12 +210,10 @@ async function listTests(context, { filesOnly, json, printLocation, includeSuite
215
210
  const hasError = list.some((file)=>file.errors?.length) || errors.length;
216
211
  const showProject = context.projects.length > 1;
217
212
  if (hasError) {
218
- const { printError } = await import("./9131.js").then((mod)=>({
219
- printError: mod.error_printError
220
- }));
213
+ const { printError } = await import("./3145.js");
221
214
  process.exitCode = 1;
222
215
  for (const file of list){
223
- const relativePath = (0, external_node_path_.relative)(rootPath, file.testPath);
216
+ const relativePath = relative(rootPath, file.testPath);
224
217
  if (file.errors?.length) {
225
218
  logger_logger.log(`${bgColor('bgRed', ' FAIL ')} ${relativePath}`);
226
219
  for (const error of file.errors)await printError(error, async (name)=>{
@@ -230,9 +223,7 @@ async function listTests(context, { filesOnly, json, printLocation, includeSuite
230
223
  }
231
224
  }
232
225
  if (errors.length) {
233
- const { printError } = await import("./9131.js").then((mod)=>({
234
- printError: mod.error_printError
235
- }));
226
+ const { printError } = await import("./3145.js");
236
227
  for (const error of errors || []){
237
228
  logger_logger.stderr(bgColor('bgRed', ' Unhandled Error '));
238
229
  await printError(error, async (name)=>{
@@ -262,16 +253,16 @@ async function listTests(context, { filesOnly, json, printLocation, includeSuite
262
253
  if (json && 'false' !== json) {
263
254
  const content = JSON.stringify(tests, null, 2);
264
255
  if (true !== json && 'true' !== json) {
265
- const jsonPath = (0, external_node_path_.isAbsolute)(json) ? json : (0, external_node_path_.join)(rootPath, json);
266
- (0, external_node_fs_.mkdirSync)((0, external_node_path_.dirname)(jsonPath), {
256
+ const jsonPath = isAbsolute(json) ? json : join(rootPath, json);
257
+ mkdirSync(dirname(jsonPath), {
267
258
  recursive: true
268
259
  });
269
- (0, external_node_fs_.writeFileSync)(jsonPath, content);
260
+ writeFileSync(jsonPath, content);
270
261
  } else logger_logger.log(content);
271
262
  } else for (const test of tests){
272
- let shortPath = (0, external_node_path_.relative)(rootPath, test.file);
263
+ let shortPath = relative(rootPath, test.file);
273
264
  if (test.location && printLocation) shortPath = `${shortPath}:${test.location.line}:${test.location.column}`;
274
- logger_logger.log(test.name ? `${color.dim(`${shortPath} > `)}${test.name}` : prettyTestPath(shortPath));
265
+ logger_logger.log(test.name ? `${logger_color.dim(`${shortPath} > `)}${test.name}` : prettyTestPath(shortPath));
275
266
  }
276
267
  await close();
277
268
  return list;
@@ -1,10 +1,10 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
3
- import { logger as logger_logger } from "./3160.js";
4
- import { fileURLToPath, pathToFileURL } from "./6198.js";
5
- import { node_vm, interopModule, shouldInterop } from "./0~3346.js";
2
+ import { isAbsolute } from "node:path";
3
+ import { fileURLToPath, pathToFileURL } from "node:url";
4
+ import node_vm from "node:vm";
5
+ import { logger as logger_logger } from "./6830.js";
6
6
  import { posix } from "./7011.js";
7
- const external_node_path_ = __webpack_require__("path");
7
+ import { interopModule, shouldInterop } from "./0~interop.js";
8
8
  var loadEsModule_EsmMode = /*#__PURE__*/ function(EsmMode) {
9
9
  EsmMode[EsmMode["Unknown"] = 0] = "Unknown";
10
10
  EsmMode[EsmMode["Evaluated"] = 1] = "Evaluated";
@@ -37,7 +37,7 @@ const defineRstestDynamicImport = ({ distPath, testPath, assetFiles, interopDefa
37
37
  } catch (err) {
38
38
  logger_logger.error(`load file ${joinedPath} failed:\n`, err instanceof Error ? err.message : err);
39
39
  }
40
- const resolvedPath = (0, external_node_path_.isAbsolute)(specifier) ? pathToFileURL(specifier) : import.meta.resolve(specifier, pathToFileURL(testPath));
40
+ const resolvedPath = isAbsolute(specifier) ? pathToFileURL(specifier) : import.meta.resolve(specifier, pathToFileURL(testPath));
41
41
  const modulePath = 'string' == typeof resolvedPath ? resolvedPath : resolvedPath.pathname;
42
42
  if (importAttributes?.with?.rstest) delete importAttributes.with.rstest;
43
43
  if (modulePath.endsWith('.json')) {
@@ -155,4 +155,4 @@ const loadModule = async ({ codeContent, distPath, testPath, assetFiles, interop
155
155
  return ns.default && ns.default instanceof Promise ? ns.default : ns;
156
156
  };
157
157
  const clearModuleCache = ()=>esmCache.clear();
158
- export { asModule, clearModuleCache, loadEsModule_EsmMode, loadModule };
158
+ export { asModule, clearModuleCache, loadEsModule_EsmMode as EsmMode, loadModule };
@@ -1,18 +1,18 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
3
- import { logger as logger_logger } from "./3160.js";
4
- import { createRequire as external_node_module_createRequire } from "./4881.js";
5
- import { fileURLToPath, pathToFileURL } from "./6198.js";
6
- import { node_vm, asModule, shouldInterop, interopModule } from "./0~3346.js";
2
+ import { createRequire } from "node:module";
3
+ import { isAbsolute } from "node:path";
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
+ import node_vm from "node:vm";
6
+ import { logger as logger_logger } from "./6830.js";
7
7
  import { posix } from "./7011.js";
8
- const external_node_path_ = __webpack_require__("path");
8
+ import { interopModule, asModule, shouldInterop } from "./0~interop.js";
9
9
  const isRelativePath = (p)=>/^\.\.?\//.test(p);
10
- const createRequire = (filename, distPath, rstestContext, assetFiles, interopDefault)=>{
10
+ const loadModule_createRequire = (filename, distPath, rstestContext, assetFiles, interopDefault)=>{
11
11
  const _require = (()=>{
12
12
  try {
13
- return external_node_module_createRequire(filename);
13
+ return createRequire(filename);
14
14
  } catch (_err) {
15
- return external_node_module_createRequire(distPath);
15
+ return createRequire(distPath);
16
16
  }
17
17
  })();
18
18
  const require = (id)=>{
@@ -39,7 +39,7 @@ const createRequire = (filename, distPath, rstestContext, assetFiles, interopDef
39
39
  return require;
40
40
  };
41
41
  const defineRstestDynamicImport = ({ testPath, interopDefault, returnModule = false, assetFiles })=>async (specifier, importAttributes)=>{
42
- const resolvedPath = (0, external_node_path_.isAbsolute)(specifier) ? pathToFileURL(specifier) : import.meta.resolve(specifier, pathToFileURL(testPath));
42
+ const resolvedPath = isAbsolute(specifier) ? pathToFileURL(specifier) : import.meta.resolve(specifier, pathToFileURL(testPath));
43
43
  const modulePath = 'string' == typeof resolvedPath ? resolvedPath : resolvedPath.pathname;
44
44
  if (modulePath.endsWith('.wasm')) {
45
45
  const normalizedPath = posix.normalize(modulePath.startsWith('file://') ? fileURLToPath(modulePath) : modulePath);
@@ -108,7 +108,7 @@ const loadModule = ({ codeContent, distPath, testPath, rstestContext, assetFiles
108
108
  const context = {
109
109
  module: localModule,
110
110
  exports: localModule.exports,
111
- require: createRequire(testPath, distPath, rstestContext, assetFiles, interopDefault),
111
+ require: loadModule_createRequire(testPath, distPath, rstestContext, assetFiles, interopDefault),
112
112
  readWasmFile: (wasmPath, callback)=>{
113
113
  const joinedPath = isRelativePath(wasmPath) ? posix.join(posix.dirname(distPath), wasmPath) : wasmPath;
114
114
  const content = assetFiles[posix.normalize(joinedPath)];
@@ -1126,4 +1126,5 @@ class Bundle {
1126
1126
  return this;
1127
1127
  }
1128
1128
  }
1129
- export { Bundle, MagicString, SourceMap };
1129
+ export default MagicString;
1130
+ export { Bundle, SourceMap };