@rstest/core 0.4.1 → 0.5.0

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.
@@ -1,8 +1,8 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
- export const __webpack_id__ = "120";
3
+ export const __webpack_id__ = "908";
4
4
  export const __webpack_ids__ = [
5
- "120"
5
+ "908"
6
6
  ];
7
7
  export const __webpack_modules__ = {
8
8
  "../../node_modules/.pnpm/stacktrace-parser@0.1.11/node_modules/stacktrace-parser/dist/stack-trace-parser.esm.js": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -512,7 +512,7 @@ export const __webpack_modules__ = {
512
512
  __webpack_require__.d(__webpack_exports__, {
513
513
  CW: ()=>SnapshotManager
514
514
  });
515
- var pathe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("pathe");
515
+ var pathe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs");
516
516
  class SnapshotManager {
517
517
  summary;
518
518
  extension = ".snap";
@@ -527,12 +527,12 @@ export const __webpack_modules__ = {
527
527
  addSnapshotResult(this.summary, result);
528
528
  }
529
529
  resolvePath(testPath, context) {
530
- const resolver = this.options.resolveSnapshotPath || (()=>(0, pathe__WEBPACK_IMPORTED_MODULE_0__.join)((0, pathe__WEBPACK_IMPORTED_MODULE_0__.join)((0, pathe__WEBPACK_IMPORTED_MODULE_0__.dirname)(testPath), "__snapshots__"), `${(0, pathe__WEBPACK_IMPORTED_MODULE_0__.basename)(testPath)}${this.extension}`));
530
+ const resolver = this.options.resolveSnapshotPath || (()=>(0, pathe__WEBPACK_IMPORTED_MODULE_0__.j)((0, pathe__WEBPACK_IMPORTED_MODULE_0__.j)((0, pathe__WEBPACK_IMPORTED_MODULE_0__.d)(testPath), "__snapshots__"), `${(0, pathe__WEBPACK_IMPORTED_MODULE_0__.c)(testPath)}${this.extension}`));
531
531
  const path = resolver(testPath, this.extension, context);
532
532
  return path;
533
533
  }
534
534
  resolveRawPath(testPath, rawPath) {
535
- return (0, pathe__WEBPACK_IMPORTED_MODULE_0__.isAbsolute)(rawPath) ? rawPath : (0, pathe__WEBPACK_IMPORTED_MODULE_0__.resolve)((0, pathe__WEBPACK_IMPORTED_MODULE_0__.dirname)(testPath), rawPath);
535
+ return (0, pathe__WEBPACK_IMPORTED_MODULE_0__.i)(rawPath) ? rawPath : (0, pathe__WEBPACK_IMPORTED_MODULE_0__.r)((0, pathe__WEBPACK_IMPORTED_MODULE_0__.d)(testPath), rawPath);
536
536
  }
537
537
  }
538
538
  function emptySummary(options) {
@@ -571,6 +571,334 @@ export const __webpack_modules__ = {
571
571
  summary.total += result.added + result.matched + result.unmatched + result.updated;
572
572
  }
573
573
  },
574
+ "../../node_modules/.pnpm/std-env@3.9.0/node_modules/std-env/dist/index.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
575
+ __webpack_require__.d(__webpack_exports__, {
576
+ JO: ()=>T
577
+ });
578
+ const r = Object.create(null), i = (e)=>globalThis.process?.env || {
579
+ MODE: "production",
580
+ DEV: false,
581
+ PROD: true,
582
+ BASE_URL: "/",
583
+ ASSET_PREFIX: "auto"
584
+ }, o = new Proxy(r, {
585
+ get (e, s) {
586
+ return i()[s] ?? r[s];
587
+ },
588
+ has (e, s) {
589
+ const E = i();
590
+ return s in E || s in r;
591
+ },
592
+ set (e, s, E) {
593
+ const B = i(!0);
594
+ return B[s] = E, !0;
595
+ },
596
+ deleteProperty (e, s) {
597
+ if (!s) return !1;
598
+ const E = i(!0);
599
+ return delete E[s], !0;
600
+ },
601
+ ownKeys () {
602
+ const e = i(!0);
603
+ return Object.keys(e);
604
+ }
605
+ }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f = [
606
+ [
607
+ "APPVEYOR"
608
+ ],
609
+ [
610
+ "AWS_AMPLIFY",
611
+ "AWS_APP_ID",
612
+ {
613
+ ci: !0
614
+ }
615
+ ],
616
+ [
617
+ "AZURE_PIPELINES",
618
+ "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"
619
+ ],
620
+ [
621
+ "AZURE_STATIC",
622
+ "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"
623
+ ],
624
+ [
625
+ "APPCIRCLE",
626
+ "AC_APPCIRCLE"
627
+ ],
628
+ [
629
+ "BAMBOO",
630
+ "bamboo_planKey"
631
+ ],
632
+ [
633
+ "BITBUCKET",
634
+ "BITBUCKET_COMMIT"
635
+ ],
636
+ [
637
+ "BITRISE",
638
+ "BITRISE_IO"
639
+ ],
640
+ [
641
+ "BUDDY",
642
+ "BUDDY_WORKSPACE_ID"
643
+ ],
644
+ [
645
+ "BUILDKITE"
646
+ ],
647
+ [
648
+ "CIRCLE",
649
+ "CIRCLECI"
650
+ ],
651
+ [
652
+ "CIRRUS",
653
+ "CIRRUS_CI"
654
+ ],
655
+ [
656
+ "CLOUDFLARE_PAGES",
657
+ "CF_PAGES",
658
+ {
659
+ ci: !0
660
+ }
661
+ ],
662
+ [
663
+ "CLOUDFLARE_WORKERS",
664
+ "WORKERS_CI",
665
+ {
666
+ ci: !0
667
+ }
668
+ ],
669
+ [
670
+ "CODEBUILD",
671
+ "CODEBUILD_BUILD_ARN"
672
+ ],
673
+ [
674
+ "CODEFRESH",
675
+ "CF_BUILD_ID"
676
+ ],
677
+ [
678
+ "DRONE"
679
+ ],
680
+ [
681
+ "DRONE",
682
+ "DRONE_BUILD_EVENT"
683
+ ],
684
+ [
685
+ "DSARI"
686
+ ],
687
+ [
688
+ "GITHUB_ACTIONS"
689
+ ],
690
+ [
691
+ "GITLAB",
692
+ "GITLAB_CI"
693
+ ],
694
+ [
695
+ "GITLAB",
696
+ "CI_MERGE_REQUEST_ID"
697
+ ],
698
+ [
699
+ "GOCD",
700
+ "GO_PIPELINE_LABEL"
701
+ ],
702
+ [
703
+ "LAYERCI"
704
+ ],
705
+ [
706
+ "HUDSON",
707
+ "HUDSON_URL"
708
+ ],
709
+ [
710
+ "JENKINS",
711
+ "JENKINS_URL"
712
+ ],
713
+ [
714
+ "MAGNUM"
715
+ ],
716
+ [
717
+ "NETLIFY"
718
+ ],
719
+ [
720
+ "NETLIFY",
721
+ "NETLIFY_LOCAL",
722
+ {
723
+ ci: !1
724
+ }
725
+ ],
726
+ [
727
+ "NEVERCODE"
728
+ ],
729
+ [
730
+ "RENDER"
731
+ ],
732
+ [
733
+ "SAIL",
734
+ "SAILCI"
735
+ ],
736
+ [
737
+ "SEMAPHORE"
738
+ ],
739
+ [
740
+ "SCREWDRIVER"
741
+ ],
742
+ [
743
+ "SHIPPABLE"
744
+ ],
745
+ [
746
+ "SOLANO",
747
+ "TDDIUM"
748
+ ],
749
+ [
750
+ "STRIDER"
751
+ ],
752
+ [
753
+ "TEAMCITY",
754
+ "TEAMCITY_VERSION"
755
+ ],
756
+ [
757
+ "TRAVIS"
758
+ ],
759
+ [
760
+ "VERCEL",
761
+ "NOW_BUILDER"
762
+ ],
763
+ [
764
+ "VERCEL",
765
+ "VERCEL",
766
+ {
767
+ ci: !1
768
+ }
769
+ ],
770
+ [
771
+ "VERCEL",
772
+ "VERCEL_ENV",
773
+ {
774
+ ci: !1
775
+ }
776
+ ],
777
+ [
778
+ "APPCENTER",
779
+ "APPCENTER_BUILD_ID"
780
+ ],
781
+ [
782
+ "CODESANDBOX",
783
+ "CODESANDBOX_SSE",
784
+ {
785
+ ci: !1
786
+ }
787
+ ],
788
+ [
789
+ "CODESANDBOX",
790
+ "CODESANDBOX_HOST",
791
+ {
792
+ ci: !1
793
+ }
794
+ ],
795
+ [
796
+ "STACKBLITZ"
797
+ ],
798
+ [
799
+ "STORMKIT"
800
+ ],
801
+ [
802
+ "CLEAVR"
803
+ ],
804
+ [
805
+ "ZEABUR"
806
+ ],
807
+ [
808
+ "CODESPHERE",
809
+ "CODESPHERE_APP_ID",
810
+ {
811
+ ci: !0
812
+ }
813
+ ],
814
+ [
815
+ "RAILWAY",
816
+ "RAILWAY_PROJECT_ID"
817
+ ],
818
+ [
819
+ "RAILWAY",
820
+ "RAILWAY_SERVICE_ID"
821
+ ],
822
+ [
823
+ "DENO-DEPLOY",
824
+ "DENO_DEPLOYMENT_ID"
825
+ ],
826
+ [
827
+ "FIREBASE_APP_HOSTING",
828
+ "FIREBASE_APP_HOSTING",
829
+ {
830
+ ci: !0
831
+ }
832
+ ]
833
+ ];
834
+ function b() {
835
+ if (globalThis.process?.env) for (const e of f){
836
+ const s = e[1] || e[0];
837
+ if (globalThis.process?.env[s]) return {
838
+ name: e[0].toLowerCase(),
839
+ ...e[2]
840
+ };
841
+ }
842
+ return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? {
843
+ name: "stackblitz",
844
+ ci: !1
845
+ } : {
846
+ name: "",
847
+ ci: !1
848
+ };
849
+ }
850
+ const l = b();
851
+ l.name;
852
+ function n(e) {
853
+ return e ? "false" !== e : !1;
854
+ }
855
+ const I = globalThis.process?.platform || "", T = n(o.CI) || !1 !== l.ci, R = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), A = (n(o.DEBUG), "test" === t || n(o.TEST), n(o.MINIMAL), /^win/i.test(I)), C = (/^linux/i.test(I), /^darwin/i.test(I), !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (R || A) && o.TERM), (globalThis.process?.versions?.node || "").replace(/^v/, "") || null), W = (Number(C?.split(".")[0]), globalThis.process || Object.create(null)), _ = {
856
+ versions: {}
857
+ }, O = (new Proxy(W, {
858
+ get (e, s) {
859
+ if ("env" === s) return o;
860
+ if (s in e) return e[s];
861
+ if (s in _) return _[s];
862
+ }
863
+ }), globalThis.process?.release?.name === "node"), c = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D = !!globalThis.Deno, L = !!globalThis.fastly, S = !!globalThis.Netlify, u = !!globalThis.EdgeRuntime, N = globalThis.navigator?.userAgent === "Cloudflare-Workers", F = [
864
+ [
865
+ S,
866
+ "netlify"
867
+ ],
868
+ [
869
+ u,
870
+ "edge-light"
871
+ ],
872
+ [
873
+ N,
874
+ "workerd"
875
+ ],
876
+ [
877
+ L,
878
+ "fastly"
879
+ ],
880
+ [
881
+ D,
882
+ "deno"
883
+ ],
884
+ [
885
+ c,
886
+ "bun"
887
+ ],
888
+ [
889
+ O,
890
+ "node"
891
+ ]
892
+ ];
893
+ function G() {
894
+ const e = F.find((s)=>s[0]);
895
+ if (e) return {
896
+ name: e[1]
897
+ };
898
+ }
899
+ const P = G();
900
+ P?.name;
901
+ },
574
902
  "../../node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
575
903
  __webpack_require__.d(__webpack_exports__, {
576
904
  A: ()=>stripAnsi
package/dist/0~928.js CHANGED
@@ -10,10 +10,10 @@ export const __webpack_modules__ = {
10
10
  __webpack_require__.d(__webpack_exports__, {
11
11
  watch: ()=>watch
12
12
  });
13
- var external_node_fs_ = __webpack_require__("fs");
13
+ var external_node_fs_ = __webpack_require__("node:fs");
14
14
  var promises_ = __webpack_require__("fs/promises");
15
15
  var external_events_ = __webpack_require__("events");
16
- var external_node_path_ = __webpack_require__("node:path");
16
+ var external_node_path_ = __webpack_require__("path");
17
17
  var external_node_fs_promises_ = __webpack_require__("node:fs/promises");
18
18
  var external_node_stream_ = __webpack_require__("node:stream");
19
19
  const EntryTypes = {
package/dist/0~967.js CHANGED
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
10
10
  onBeforeRestart: ()=>onBeforeRestart,
11
11
  watchFilesForRestart: ()=>watchFilesForRestart
12
12
  });
13
- var external_node_path_ = __webpack_require__("node:path");
13
+ var external_node_path_ = __webpack_require__("path");
14
14
  var commands = __webpack_require__("./src/cli/commands.ts");
15
15
  var utils = __webpack_require__("./src/utils/index.ts");
16
16
  const GLOB_REGEX = /[*?{}[\]()!@+|]/;
package/dist/0~969.js CHANGED
@@ -38,10 +38,10 @@ export const __webpack_modules__ = {
38
38
  "../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js": function(module, exports, __webpack_require__) {
39
39
  module = __webpack_require__.nmd(module);
40
40
  var SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js").SourceMapConsumer;
41
- var path = __webpack_require__("node:path");
41
+ var path = __webpack_require__("path");
42
42
  var fs;
43
43
  try {
44
- fs = __webpack_require__("fs");
44
+ fs = __webpack_require__("node:fs");
45
45
  if (!fs.existsSync || !fs.readFileSync) fs = null;
46
46
  } catch (err) {}
47
47
  var bufferFrom = __webpack_require__("../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js");
package/dist/0~971.js CHANGED
@@ -9,8 +9,8 @@ export const __webpack_modules__ = {
9
9
  __webpack_require__.d(__webpack_exports__, {
10
10
  listTests: ()=>listTests
11
11
  });
12
- var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs");
13
- var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("node:path");
12
+ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("node:fs");
13
+ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("path");
14
14
  var _pool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/pool/index.ts");
15
15
  var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/utils/index.ts");
16
16
  var _rsbuild__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./src/core/rsbuild.ts");
@@ -22,7 +22,7 @@ export const __webpack_modules__ = {
22
22
  const { include, exclude, includeSource, root } = context.projects.find((p)=>p.environmentName === name).normalizedConfig;
23
23
  const entries = await (0, _utils__WEBPACK_IMPORTED_MODULE_3__.tG)({
24
24
  include,
25
- exclude,
25
+ exclude: exclude.patterns,
26
26
  rootPath,
27
27
  projectRoot: root,
28
28
  fileFilters: context.fileFilters || [],