@rstest/core 0.7.7 → 0.7.9

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 (57) hide show
  1. package/LICENSE.md +294 -0
  2. package/dist/0~130.js +2 -2
  3. package/dist/0~1472.js +48 -0
  4. package/dist/0~1981.js +3 -0
  5. package/dist/0~2173.js +25 -10
  6. package/dist/0~2255.js +2 -2
  7. package/dist/0~3062.js +0 -5
  8. package/dist/0~3919.js +1 -1
  9. package/dist/0~4403.js +6 -5
  10. package/dist/0~4809.js +4 -4
  11. package/dist/0~5835.js +2 -2
  12. package/dist/0~62.js +3 -3
  13. package/dist/0~6588.js +3 -3
  14. package/dist/0~6923.js +2 -2
  15. package/dist/0~7583.js +9 -8
  16. package/dist/0~7882.js +1144 -0
  17. package/dist/0~8426.js +1 -2
  18. package/dist/0~89.js +33 -24
  19. package/dist/0~9348.js +953 -0
  20. package/dist/0~9634.js +58 -10
  21. package/dist/1157.js +13 -118
  22. package/dist/{7913.js → 1294.js} +51 -1745
  23. package/dist/2672.js +647 -0
  24. package/dist/3278.js +3 -450
  25. package/dist/4484.js +38 -0
  26. package/dist/487.js +1739 -0
  27. package/dist/4899.js +11 -0
  28. package/dist/5734.js +1 -1
  29. package/dist/{0~6151.js → 6151.js} +169 -21
  30. package/dist/{0~6973.js → 6973.js} +5 -5
  31. package/dist/721.js +9 -0
  32. package/dist/9131.js +559 -502
  33. package/dist/browser-runtime/2~907.js +1211 -0
  34. package/dist/browser-runtime/2~907.js.map +1 -0
  35. package/dist/browser-runtime/389.js +22071 -0
  36. package/dist/browser-runtime/389.js.LICENSE.txt +329 -0
  37. package/dist/browser-runtime/389.js.map +1 -0
  38. package/dist/browser-runtime/index.d.ts +2806 -0
  39. package/dist/browser-runtime/index.js +1 -0
  40. package/dist/browser-runtime/rslib-runtime.js +50 -0
  41. package/dist/browser-runtime/rslib-runtime.js.map +1 -0
  42. package/dist/browser.d.ts +3329 -0
  43. package/dist/browser.js +14 -0
  44. package/dist/cssFilterLoader.mjs +1 -1
  45. package/dist/globalSetupWorker.js +3 -2
  46. package/dist/index.d.ts +67 -2
  47. package/dist/index.js +2 -1
  48. package/dist/rslib-runtime.js +27 -0
  49. package/dist/rstestSuppressWarnings.cjs +9 -0
  50. package/dist/worker.d.ts +66 -2
  51. package/dist/worker.js +415 -1
  52. package/package.json +29 -14
  53. package/dist/0~8957.js +0 -149
  54. package/dist/554.js +0 -417
  55. package/dist/5693.js +0 -91
  56. /package/dist/{7913.js.LICENSE.txt → 1294.js.LICENSE.txt} +0 -0
  57. /package/dist/{0~6151.js.LICENSE.txt → 6151.js.LICENSE.txt} +0 -0
package/dist/3278.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
3
  import { __webpack_require__ } from "./rslib-runtime.js";
4
- import node_process from "node:process";
5
- import "./5693.js";
4
+ import node_process, { stdin, stdout } from "node:process";
5
+ import { _path } from "./2672.js";
6
6
  const external_node_os_ = __webpack_require__("node:os");
7
7
  const external_node_tty_ = __webpack_require__("node:tty");
8
8
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process.argv) {
@@ -300,453 +300,6 @@ const logger_logger = {
300
300
  console.error(message, ...args);
301
301
  }
302
302
  };
303
- let _lazyMatch = ()=>{
304
- var __lib__ = (()=>{
305
- var m = Object.defineProperty, V = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, q = (r, e)=>{
306
- for(var n in e)m(r, n, {
307
- get: e[n],
308
- enumerable: true
309
- });
310
- }, H = (r, e, n, a)=>{
311
- if (e && "object" == typeof e || "function" == typeof e) for (let t of G(e))T.call(r, t) || t === n || m(r, t, {
312
- get: ()=>e[t],
313
- enumerable: !(a = V(e, t)) || a.enumerable
314
- });
315
- return r;
316
- }, J = (r)=>H(m({}, "__esModule", {
317
- value: true
318
- }), r), w = {};
319
- q(w, {
320
- default: ()=>re
321
- });
322
- var A = (r)=>Array.isArray(r), d = (r)=>"function" == typeof r, Q = (r)=>0 === r.length, W = (r)=>"number" == typeof r, K = (r)=>"object" == typeof r && null !== r, X = (r)=>r instanceof RegExp, b = (r)=>"string" == typeof r, h = (r)=>void 0 === r, Y = (r)=>{
323
- const e = new Map;
324
- return (n)=>{
325
- const a = e.get(n);
326
- if (a) return a;
327
- const t = r(n);
328
- return e.set(n, t), t;
329
- };
330
- }, rr = (r, e, n = {})=>{
331
- const a = {
332
- cache: {},
333
- input: r,
334
- index: 0,
335
- indexMax: 0,
336
- options: n,
337
- output: []
338
- };
339
- if (v(e)(a) && a.index === r.length) return a.output;
340
- throw new Error(`Failed to parse at index ${a.indexMax}`);
341
- }, i = (r, e)=>A(r) ? er(r, e) : b(r) ? ar(r, e) : nr(r, e), er = (r, e)=>{
342
- const n = {};
343
- for (const a of r){
344
- if (1 !== a.length) throw new Error(`Invalid character: "${a}"`);
345
- const t = a.charCodeAt(0);
346
- n[t] = true;
347
- }
348
- return (a)=>{
349
- const t = a.index, o = a.input;
350
- for(; a.index < o.length && o.charCodeAt(a.index) in n;)a.index += 1;
351
- const u = a.index;
352
- if (u > t) {
353
- if (!h(e) && !a.options.silent) {
354
- const s = a.input.slice(t, u), c = d(e) ? e(s, o, String(t)) : e;
355
- h(c) || a.output.push(c);
356
- }
357
- a.indexMax = Math.max(a.indexMax, a.index);
358
- }
359
- return true;
360
- };
361
- }, nr = (r, e)=>{
362
- const n = r.source, a = r.flags.replace(/y|$/, "y"), t = new RegExp(n, a);
363
- return g((o)=>{
364
- t.lastIndex = o.index;
365
- const u = t.exec(o.input);
366
- if (!u) return false;
367
- if (!h(e) && !o.options.silent) {
368
- const s = d(e) ? e(...u, o.input, String(o.index)) : e;
369
- h(s) || o.output.push(s);
370
- }
371
- return o.index += u[0].length, o.indexMax = Math.max(o.indexMax, o.index), true;
372
- });
373
- }, ar = (r, e)=>(n)=>{
374
- if (!n.input.startsWith(r, n.index)) return false;
375
- if (!h(e) && !n.options.silent) {
376
- const t = d(e) ? e(r, n.input, String(n.index)) : e;
377
- h(t) || n.output.push(t);
378
- }
379
- return n.index += r.length, n.indexMax = Math.max(n.indexMax, n.index), true;
380
- }, C = (r, e, n, a)=>{
381
- const t = v(r);
382
- return g(_(M((o)=>{
383
- let u = 0;
384
- for(; u < n;){
385
- const s = o.index;
386
- if (!t(o) || (u += 1, o.index === s)) break;
387
- }
388
- return u >= e;
389
- })));
390
- }, tr = (r, e)=>C(r, 0, 1), f = (r, e)=>C(r, 0, 1 / 0), x = (r, e)=>{
391
- const n = r.map(v);
392
- return g(_(M((a)=>{
393
- for(let t = 0, o = n.length; t < o; t++)if (!n[t](a)) return false;
394
- return true;
395
- })));
396
- }, l = (r, e)=>{
397
- const n = r.map(v);
398
- return g(_((a)=>{
399
- for(let t = 0, o = n.length; t < o; t++)if (n[t](a)) return true;
400
- return false;
401
- }));
402
- }, M = (r, e = false)=>{
403
- const n = v(r);
404
- return (a)=>{
405
- const t = a.index, o = a.output.length, u = n(a);
406
- return (!u || e) && (a.index = t, a.output.length !== o && (a.output.length = o)), u;
407
- };
408
- }, _ = (r, e)=>{
409
- const n = v(r);
410
- return n;
411
- }, g = (()=>{
412
- let r = 0;
413
- return (e)=>{
414
- const n = v(e), a = r += 1;
415
- return (t)=>{
416
- var o;
417
- if (false === t.options.memoization) return n(t);
418
- const u = t.index, s = (o = t.cache)[a] || (o[a] = new Map), c = s.get(u);
419
- if (false === c) return false;
420
- if (W(c)) return t.index = c, true;
421
- if (c) return t.index = c.index, c.output?.length && t.output.push(...c.output), true;
422
- {
423
- const Z = t.output.length;
424
- if (!n(t)) return s.set(u, false), false;
425
- {
426
- const D = t.index, U = t.output.length;
427
- if (U > Z) {
428
- const ee = t.output.slice(Z, U);
429
- s.set(u, {
430
- index: D,
431
- output: ee
432
- });
433
- } else s.set(u, D);
434
- return true;
435
- }
436
- }
437
- };
438
- };
439
- })(), E = (r)=>{
440
- let e;
441
- return (n)=>(e || (e = v(r())), e(n));
442
- }, v = Y((r)=>{
443
- if (d(r)) return Q(r) ? E(r) : r;
444
- if (b(r) || X(r)) return i(r);
445
- if (A(r)) return x(r);
446
- if (K(r)) return l(Object.values(r));
447
- throw new Error("Invalid rule");
448
- }), P = "abcdefghijklmnopqrstuvwxyz", ir = (r)=>{
449
- let e = "";
450
- for(; r > 0;){
451
- const n = (r - 1) % 26;
452
- e = P[n] + e, r = Math.floor((r - 1) / 26);
453
- }
454
- return e;
455
- }, O = (r)=>{
456
- let e = 0;
457
- for(let n = 0, a = r.length; n < a; n++)e = 26 * e + P.indexOf(r[n]) + 1;
458
- return e;
459
- }, S = (r, e)=>{
460
- if (e < r) return S(e, r);
461
- const n = [];
462
- for(; r <= e;)n.push(r++);
463
- return n;
464
- }, or = (r, e, n)=>S(r, e).map((a)=>String(a).padStart(n, "0")), R = (r, e)=>S(O(r), O(e)).map(ir), p = (r)=>r, z = (r)=>ur((e)=>rr(e, r, {
465
- memoization: false
466
- }).join("")), ur = (r)=>{
467
- const e = {};
468
- return (n)=>e[n] ?? (e[n] = r(n));
469
- }, sr = i(/^\*\*\/\*$/, ".*"), cr = i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/, (r, e, n)=>`.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}`), lr = i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/, (r, e, n, a)=>`.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}(?:${a.replaceAll(",", "|").replaceAll(".", "\\.")})`), y = i(/\\./, p), pr = i(/[$.*+?^(){}[\]\|]/, (r)=>`\\${r}`), vr = i(/./, p), hr = i(/^(?:!!)*!(.*)$/, (r, e)=>`(?!^${L(e)}$).*?`), dr = i(/^(!!)+/, ""), fr = l([
470
- hr,
471
- dr
472
- ]), xr = i(/\/(\*\*\/)+/, "(?:/.+/|/)"), gr = i(/^(\*\*\/)+/, "(?:^|.*/)"), mr = i(/\/(\*\*)$/, "(?:/.*|$)"), _r = i(/\*\*/, ".*"), j = l([
473
- xr,
474
- gr,
475
- mr,
476
- _r
477
- ]), Sr = i(/\*\/(?!\*\*\/)/, "[^/]*/"), yr = i(/\*/, "[^/]*"), N = l([
478
- Sr,
479
- yr
480
- ]), k = i("?", "[^/]"), $r = i("[", p), wr = i("]", p), Ar = i(/[!^]/, "^/"), br = i(/[a-z]-[a-z]|[0-9]-[0-9]/i, p), Cr = i(/[$.*+?^(){}[\|]/, (r)=>`\\${r}`), Mr = i(/[^\]]/, p), Er = l([
481
- y,
482
- Cr,
483
- br,
484
- Mr
485
- ]), B = x([
486
- $r,
487
- tr(Ar),
488
- f(Er),
489
- wr
490
- ]), Pr = i("{", "(?:"), Or = i("}", ")"), Rr = i(/(\d+)\.\.(\d+)/, (r, e, n)=>or(+e, +n, Math.min(e.length, n.length)).join("|")), zr = i(/([a-z]+)\.\.([a-z]+)/, (r, e, n)=>R(e, n).join("|")), jr = i(/([A-Z]+)\.\.([A-Z]+)/, (r, e, n)=>R(e.toLowerCase(), n.toLowerCase()).join("|").toUpperCase()), Nr = l([
491
- Rr,
492
- zr,
493
- jr
494
- ]), I = x([
495
- Pr,
496
- Nr,
497
- Or
498
- ]), kr = i("{", "(?:"), Br = i("}", ")"), Ir = i(",", "|"), Fr = i(/[$.*+?^(){[\]\|]/, (r)=>`\\${r}`), Lr = i(/[^}]/, p), Zr = E(()=>F), Dr = l([
499
- j,
500
- N,
501
- k,
502
- B,
503
- I,
504
- Zr,
505
- y,
506
- Fr,
507
- Ir,
508
- Lr
509
- ]), F = x([
510
- kr,
511
- f(Dr),
512
- Br
513
- ]), Ur = f(l([
514
- sr,
515
- cr,
516
- lr,
517
- fr,
518
- j,
519
- N,
520
- k,
521
- B,
522
- I,
523
- F,
524
- y,
525
- pr,
526
- vr
527
- ])), Vr = Ur, Gr = z(Vr), L = Gr, Tr = i(/\\./, p), qr = i(/./, p), Hr = i(/\*\*\*+/, "*"), Jr = i(/([^/{[(!])\*\*/, (r, e)=>`${e}*`), Qr = i(/(^|.)\*\*(?=[^*/)\]}])/, (r, e)=>`${e}*`), Wr = f(l([
528
- Tr,
529
- Hr,
530
- Jr,
531
- Qr,
532
- qr
533
- ])), Kr = Wr, Xr = z(Kr), Yr = Xr, $ = (r, e)=>{
534
- const n = Array.isArray(r) ? r : [
535
- r
536
- ];
537
- if (!n.length) return false;
538
- const a = n.map($.compile), t = n.every((s)=>/(\/(?:\*\*)?|\[\/\])$/.test(s)), o = e.replace(/[\\\/]+/g, "/").replace(/\/$/, t ? "/" : "");
539
- return a.some((s)=>s.test(o));
540
- };
541
- $.compile = (r)=>new RegExp(`^${L(Yr(r))}$`, "s");
542
- var re = $;
543
- return J(w);
544
- })();
545
- return __lib__.default || __lib__;
546
- };
547
- let _match;
548
- const zeptomatch = (path, pattern)=>{
549
- if (!_match) {
550
- _match = _lazyMatch();
551
- _lazyMatch = null;
552
- }
553
- return _match(path, pattern);
554
- };
555
- const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
556
- function normalizeWindowsPath(input = "") {
557
- if (!input) return input;
558
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r)=>r.toUpperCase());
559
- }
560
- const _UNC_REGEX = /^[/\\]{2}/;
561
- const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
562
- const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
563
- const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
564
- const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
565
- const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
566
- const sep = "/";
567
- const normalize = function(path) {
568
- if (0 === path.length) return ".";
569
- path = normalizeWindowsPath(path);
570
- const isUNCPath = path.match(_UNC_REGEX);
571
- const isPathAbsolute = isAbsolute(path);
572
- const trailingSeparator = "/" === path[path.length - 1];
573
- path = normalizeString(path, !isPathAbsolute);
574
- if (0 === path.length) {
575
- if (isPathAbsolute) return "/";
576
- return trailingSeparator ? "./" : ".";
577
- }
578
- if (trailingSeparator) path += "/";
579
- if (_DRIVE_LETTER_RE.test(path)) path += "/";
580
- if (isUNCPath) {
581
- if (!isPathAbsolute) return `//./${path}`;
582
- return `//${path}`;
583
- }
584
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
585
- };
586
- const join = function(...segments) {
587
- let path = "";
588
- for (const seg of segments)if (seg) if (path.length > 0) {
589
- const pathTrailing = "/" === path[path.length - 1];
590
- const segLeading = "/" === seg[0];
591
- const both = pathTrailing && segLeading;
592
- if (both) path += seg.slice(1);
593
- else path += pathTrailing || segLeading ? seg : `/${seg}`;
594
- } else path += seg;
595
- return normalize(path);
596
- };
597
- function cwd() {
598
- if ("u" > typeof process && "function" == typeof process.cwd) return process.cwd().replace(/\\/g, "/");
599
- return "/";
600
- }
601
- const resolve = function(...arguments_) {
602
- arguments_ = arguments_.map((argument)=>normalizeWindowsPath(argument));
603
- let resolvedPath = "";
604
- let resolvedAbsolute = false;
605
- for(let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--){
606
- const path = index >= 0 ? arguments_[index] : cwd();
607
- if (path && 0 !== path.length) {
608
- resolvedPath = `${path}/${resolvedPath}`;
609
- resolvedAbsolute = isAbsolute(path);
610
- }
611
- }
612
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
613
- if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
614
- return resolvedPath.length > 0 ? resolvedPath : ".";
615
- };
616
- function normalizeString(path, allowAboveRoot) {
617
- let res = "";
618
- let lastSegmentLength = 0;
619
- let lastSlash = -1;
620
- let dots = 0;
621
- let char = null;
622
- for(let index = 0; index <= path.length; ++index){
623
- if (index < path.length) char = path[index];
624
- else if ("/" === char) break;
625
- else char = "/";
626
- if ("/" === char) {
627
- if (lastSlash === index - 1 || 1 === dots) ;
628
- else if (2 === dots) {
629
- if (res.length < 2 || 2 !== lastSegmentLength || "." !== res[res.length - 1] || "." !== res[res.length - 2]) {
630
- if (res.length > 2) {
631
- const lastSlashIndex = res.lastIndexOf("/");
632
- if (-1 === lastSlashIndex) {
633
- res = "";
634
- lastSegmentLength = 0;
635
- } else {
636
- res = res.slice(0, lastSlashIndex);
637
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
638
- }
639
- lastSlash = index;
640
- dots = 0;
641
- continue;
642
- } else if (res.length > 0) {
643
- res = "";
644
- lastSegmentLength = 0;
645
- lastSlash = index;
646
- dots = 0;
647
- continue;
648
- }
649
- }
650
- if (allowAboveRoot) {
651
- res += res.length > 0 ? "/.." : "..";
652
- lastSegmentLength = 2;
653
- }
654
- } else {
655
- if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
656
- else res = path.slice(lastSlash + 1, index);
657
- lastSegmentLength = index - lastSlash - 1;
658
- }
659
- lastSlash = index;
660
- dots = 0;
661
- } else if ("." === char && -1 !== dots) ++dots;
662
- else dots = -1;
663
- }
664
- return res;
665
- }
666
- const isAbsolute = function(p) {
667
- return _IS_ABSOLUTE_RE.test(p);
668
- };
669
- const toNamespacedPath = function(p) {
670
- return normalizeWindowsPath(p);
671
- };
672
- const extname = function(p) {
673
- if (".." === p) return "";
674
- const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
675
- return match && match[1] || "";
676
- };
677
- const relative = function(from, to) {
678
- const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
679
- const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
680
- if (":" === _to[0][1] && ":" === _from[0][1] && _from[0] !== _to[0]) return _to.join("/");
681
- const _fromCopy = [
682
- ..._from
683
- ];
684
- for (const segment of _fromCopy){
685
- if (_to[0] !== segment) break;
686
- _from.shift();
687
- _to.shift();
688
- }
689
- return [
690
- ..._from.map(()=>".."),
691
- ..._to
692
- ].join("/");
693
- };
694
- const dirname = function(p) {
695
- const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
696
- if (1 === segments.length && _DRIVE_LETTER_RE.test(segments[0])) segments[0] += "/";
697
- return segments.join("/") || (isAbsolute(p) ? "/" : ".");
698
- };
699
- const format = function(p) {
700
- const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
701
- const segments = [
702
- p.root,
703
- p.dir,
704
- p.base ?? (p.name ?? "") + ext
705
- ].filter(Boolean);
706
- return normalizeWindowsPath(p.root ? resolve(...segments) : segments.join("/"));
707
- };
708
- const basename = function(p, extension) {
709
- const segments = normalizeWindowsPath(p).split("/");
710
- let lastSegment = "";
711
- for(let i = segments.length - 1; i >= 0; i--){
712
- const val = segments[i];
713
- if (val) {
714
- lastSegment = val;
715
- break;
716
- }
717
- }
718
- return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
719
- };
720
- const parse = function(p) {
721
- const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
722
- const base = basename(p);
723
- const extension = extname(base);
724
- return {
725
- root,
726
- dir: dirname(p),
727
- base,
728
- ext: extension,
729
- name: base.slice(0, base.length - extension.length)
730
- };
731
- };
732
- const matchesGlob = (path, pattern)=>zeptomatch(pattern, normalize(path));
733
- const _path = {
734
- __proto__: null,
735
- basename: basename,
736
- dirname: dirname,
737
- extname: extname,
738
- format: format,
739
- isAbsolute: isAbsolute,
740
- join: join,
741
- matchesGlob: matchesGlob,
742
- normalize: normalize,
743
- normalizeString: normalizeString,
744
- parse: parse,
745
- relative: relative,
746
- resolve: resolve,
747
- sep: sep,
748
- toNamespacedPath: toNamespacedPath
749
- };
750
303
  const delimiter = /* @__PURE__ */ (()=>globalThis.process?.platform === "win32" ? ";" : ":")();
751
304
  const _platforms = {
752
305
  posix: void 0,
@@ -762,4 +315,4 @@ const mix = (del = delimiter)=>new Proxy(_path, {
762
315
  });
763
316
  const posix = /* @__PURE__ */ mix(":");
764
317
  const win32 = /* @__PURE__ */ mix(";");
765
- export { basename, clearScreen, dirname, isAbsolute, isDebug, join, logger_logger, node_process, normalize, parse, posix, relative, resolve };
318
+ export { clearScreen, isDebug, logger_logger as logger, node_process, posix, stdin, stdout };
package/dist/4484.js ADDED
@@ -0,0 +1,38 @@
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import * as __rspack_external__rsbuild_core_1b356efc from "@rsbuild/core";
4
+ const check = (name)=>{
5
+ if (!globalThis.RSTEST_API?.[name]) throw new Error(`Rstest API '${name}' is not registered yet, please make sure you are running in a rstest environment.`);
6
+ };
7
+ const wrapRstestAPI = (name)=>{
8
+ const fn = (...args)=>{
9
+ check(name);
10
+ return globalThis.RSTEST_API[name].call(globalThis.RSTEST_API[name], ...args);
11
+ };
12
+ return new Proxy(fn, {
13
+ get (_target, key, receiver) {
14
+ if (!globalThis.RSTEST_API?.[name]) return Reflect.get(fn, key, receiver);
15
+ return Reflect.get(globalThis.RSTEST_API[name], key, receiver);
16
+ }
17
+ });
18
+ };
19
+ const wrapRstestUtilitiesAPI = (name)=>new Proxy({}, {
20
+ get (_target, key, receiver) {
21
+ check(name);
22
+ return Reflect.get(globalThis.RSTEST_API?.[name] || {}, key, receiver);
23
+ }
24
+ });
25
+ const expect = wrapRstestAPI('expect');
26
+ const assert = wrapRstestAPI('assert');
27
+ const it = wrapRstestAPI('it');
28
+ const test = wrapRstestAPI('test');
29
+ const describe = wrapRstestAPI('describe');
30
+ const beforeAll = wrapRstestAPI('beforeAll');
31
+ const afterAll = wrapRstestAPI('afterAll');
32
+ const beforeEach = wrapRstestAPI('beforeEach');
33
+ const afterEach = wrapRstestAPI('afterEach');
34
+ const rstest = wrapRstestUtilitiesAPI('rstest');
35
+ const rs = wrapRstestUtilitiesAPI('rs');
36
+ const onTestFinished = wrapRstestAPI('onTestFinished');
37
+ const onTestFailed = wrapRstestAPI('onTestFailed');
38
+ export { __rspack_external__rsbuild_core_1b356efc as rsbuild, afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, onTestFailed, onTestFinished, rs, rstest, test };