@rstest/core 0.9.4 → 0.9.6

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 (52) hide show
  1. package/LICENSE.md +54 -202
  2. package/dist/0~8843.js +32 -14
  3. package/dist/{0~lib.js → 0~@babel/code-frame.js} +2 -2
  4. package/dist/0~@clack/prompts.js +1044 -0
  5. package/dist/0~browserLoader.js +1 -1
  6. package/dist/0~browser~1.js +19 -19
  7. package/dist/0~checkThresholds.js +2 -2
  8. package/dist/0~chokidar.js +43 -42
  9. package/dist/0~console.js +1 -1
  10. package/dist/0~fake-timers.js +1586 -0
  11. package/dist/0~generate.js +5 -5
  12. package/dist/0~happyDom.js +1 -1
  13. package/dist/0~jsdom.js +1 -1
  14. package/dist/0~listTests.js +3 -3
  15. package/dist/0~loadModule.js +1 -1
  16. package/dist/0~magic-string.es.js +1 -181
  17. package/dist/0~restart.js +1 -1
  18. package/dist/0~runTests.js +11 -4
  19. package/dist/0~snapshot.js +2140 -0
  20. package/dist/0~snapshot.js.LICENSE.txt +7 -0
  21. package/dist/0~utils.js +1 -1
  22. package/dist/1255.js +11 -11
  23. package/dist/1949.js +2919 -9808
  24. package/dist/1949.js.LICENSE.txt +1 -49
  25. package/dist/3145.js +415 -40
  26. package/dist/4411.js +245 -60
  27. package/dist/6830.js +62 -10
  28. package/dist/6887.js +15 -0
  29. package/dist/7552.js +22 -4918
  30. package/dist/9743.js +1982 -0
  31. package/dist/9784.js +1343 -0
  32. package/dist/{7552.js.LICENSE.txt → 9784.js.LICENSE.txt} +19 -8
  33. package/dist/browser-runtime/2~fake-timers.js +1760 -0
  34. package/dist/browser-runtime/2~magic-string.es.js +3 -189
  35. package/dist/browser-runtime/2~snapshot.js +2138 -0
  36. package/dist/browser-runtime/2~snapshot.js.LICENSE.txt +7 -0
  37. package/dist/browser-runtime/723.js +1818 -10300
  38. package/dist/browser-runtime/723.js.LICENSE.txt +0 -17
  39. package/dist/browser-runtime/index.d.ts +205 -16
  40. package/dist/browser.d.ts +55 -10
  41. package/dist/browser.js +2 -2
  42. package/dist/globalSetupWorker.js +2 -2
  43. package/dist/index.d.ts +78 -16
  44. package/dist/index.js +1 -1
  45. package/dist/mockRuntimeCode.js +2 -0
  46. package/dist/worker.d.ts +47 -10
  47. package/dist/worker.js +12 -10
  48. package/package.json +27 -28
  49. package/dist/0~dist.js +0 -1014
  50. package/dist/4899.js +0 -11
  51. package/dist/browser-runtime/rslib-runtime.js +0 -56
  52. /package/dist/{rslib-runtime.js → 0~rslib-runtime.js} +0 -0
package/LICENSE.md CHANGED
@@ -364,60 +364,6 @@ Licensed under MIT license in the repository at git+https://github.com/bombshell
364
364
  >
365
365
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
366
366
 
367
- ### @jest/diff-sequences
368
-
369
- Licensed under MIT license in the repository at https://github.com/jestjs/jest.git.
370
-
371
- > MIT License
372
- >
373
- > Copyright (c) Meta Platforms, Inc. and affiliates.
374
- > Copyright Contributors to the Jest project.
375
- >
376
- > Permission is hereby granted, free of charge, to any person obtaining a copy
377
- > of this software and associated documentation files (the "Software"), to deal
378
- > in the Software without restriction, including without limitation the rights
379
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
380
- > copies of the Software, and to permit persons to whom the Software is
381
- > furnished to do so, subject to the following conditions:
382
- >
383
- > The above copyright notice and this permission notice shall be included in all
384
- > copies or substantial portions of the Software.
385
- >
386
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
387
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
388
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
389
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
390
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
391
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
392
- > SOFTWARE.
393
-
394
- ### @jest/get-type
395
-
396
- Licensed under MIT license in the repository at https://github.com/jestjs/jest.git.
397
-
398
- > MIT License
399
- >
400
- > Copyright (c) Meta Platforms, Inc. and affiliates.
401
- > Copyright Contributors to the Jest project.
402
- >
403
- > Permission is hereby granted, free of charge, to any person obtaining a copy
404
- > of this software and associated documentation files (the "Software"), to deal
405
- > in the Software without restriction, including without limitation the rights
406
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
407
- > copies of the Software, and to permit persons to whom the Software is
408
- > furnished to do so, subject to the following conditions:
409
- >
410
- > The above copyright notice and this permission notice shall be included in all
411
- > copies or substantial portions of the Software.
412
- >
413
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
414
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
415
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
416
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
417
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
418
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
419
- > SOFTWARE.
420
-
421
367
  ### @jridgewell/resolve-uri
422
368
 
423
369
  Licensed under MIT license in the repository at https://github.com/jridgewell/resolve-uri.
@@ -680,20 +626,6 @@ Licensed under MIT license in the repository at chalk/ansi-regex.
680
626
  >
681
627
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
682
628
 
683
- ### ansi-styles
684
-
685
- Licensed under MIT license in the repository at chalk/ansi-styles.
686
-
687
- > MIT License
688
- >
689
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
690
- >
691
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
692
- >
693
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
694
- >
695
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
696
-
697
629
  ### birpc
698
630
 
699
631
  Licensed under MIT license in the repository at git+https://github.com/antfu-collective/birpc.git.
@@ -798,20 +730,6 @@ Licensed under MIT license in the repository at https://github.com/chaijs/chai.
798
730
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
799
731
  > SOFTWARE.
800
732
 
801
- ### chalk
802
-
803
- Licensed under MIT license in the repository at chalk/chalk.
804
-
805
- > MIT License
806
- >
807
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
808
- >
809
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
810
- >
811
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
812
- >
813
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
814
-
815
733
  ### chokidar
816
734
 
817
735
  Licensed under MIT license in the repository at git+https://github.com/paulmillr/chokidar.git.
@@ -838,78 +756,67 @@ Licensed under MIT license in the repository at git+https://github.com/paulmillr
838
756
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
839
757
  > THE SOFTWARE.
840
758
 
841
- ### color-convert
759
+ ### fast-string-truncated-width
842
760
 
843
- Licensed under MIT license in the repository at Qix-/color-convert.
844
-
845
- > Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>
846
- >
847
- > Permission is hereby granted, free of charge, to any person obtaining
848
- > a copy of this software and associated documentation files (the
849
- > "Software"), to deal in the Software without restriction, including
850
- > without limitation the rights to use, copy, modify, merge, publish,
851
- > distribute, sublicense, and/or sell copies of the Software, and to
852
- > permit persons to whom the Software is furnished to do so, subject to
853
- > the following conditions:
854
- >
855
- > The above copyright notice and this permission notice shall be
856
- > included in all copies or substantial portions of the Software.
857
- >
858
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
859
- > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
860
- > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
861
- > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
862
- > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
863
- > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
864
- > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
865
-
866
- ### color-name
867
-
868
- Licensed under MIT license in the repository at git@github.com:colorjs/color-name.git.
761
+ Licensed under MIT license in the repository at github:fabiospampinato/fast-string-truncated-width.
869
762
 
870
763
  > The MIT License (MIT)
871
- > Copyright (c) 2015 Dmitry Ivanov
872
764
  >
873
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
765
+ > Copyright (c) 2024-present Fabio Spampinato
874
766
  >
875
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
876
- >
877
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
878
-
879
- ### fdir
880
-
881
- Licensed under MIT license in the repository at git+https://github.com/thecodrr/fdir.git.
882
-
883
- > Copyright 2023 Abdullah Atta
884
- >
885
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
767
+ > Permission is hereby granted, free of charge, to any person obtaining a
768
+ > copy of this software and associated documentation files (the "Software"),
769
+ > to deal in the Software without restriction, including without limitation
770
+ > the rights to use, copy, modify, merge, publish, distribute, sublicense,
771
+ > and/or sell copies of the Software, and to permit persons to whom the
772
+ > Software is furnished to do so, subject to the following conditions:
886
773
  >
887
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
774
+ > The above copyright notice and this permission notice shall be included in
775
+ > all copies or substantial portions of the Software.
888
776
  >
889
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
777
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
778
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
779
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
780
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
781
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
782
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
783
+ > DEALINGS IN THE SOFTWARE.
890
784
 
891
- ### has-flag
785
+ ### fast-string-width
892
786
 
893
- Licensed under MIT license in the repository at sindresorhus/has-flag.
787
+ Licensed under MIT license in the repository at github:fabiospampinato/fast-string-width.
894
788
 
895
- > MIT License
789
+ > The MIT License (MIT)
896
790
  >
897
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
791
+ > Copyright (c) 2024-present Fabio Spampinato
898
792
  >
899
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
793
+ > Permission is hereby granted, free of charge, to any person obtaining a
794
+ > copy of this software and associated documentation files (the "Software"),
795
+ > to deal in the Software without restriction, including without limitation
796
+ > the rights to use, copy, modify, merge, publish, distribute, sublicense,
797
+ > and/or sell copies of the Software, and to permit persons to whom the
798
+ > Software is furnished to do so, subject to the following conditions:
900
799
  >
901
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
800
+ > The above copyright notice and this permission notice shall be included in
801
+ > all copies or substantial portions of the Software.
902
802
  >
903
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
803
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
804
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
805
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
806
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
807
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
808
+ > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
809
+ > DEALINGS IN THE SOFTWARE.
904
810
 
905
- ### jest-diff
811
+ ### fast-wrap-ansi
906
812
 
907
- Licensed under MIT license in the repository at https://github.com/jestjs/jest.git.
813
+ Licensed under MIT license in the repository at git+https://github.com/43081j/fast-wrap-ansi.git.
908
814
 
909
815
  > MIT License
910
816
  >
911
- > Copyright (c) Meta Platforms, Inc. and affiliates.
912
- > Copyright Contributors to the Jest project.
817
+ > Copyright (c) 2025 James Garbutt
818
+ >
819
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
913
820
  >
914
821
  > Permission is hereby granted, free of charge, to any person obtaining a copy
915
822
  > of this software and associated documentation files (the "Software"), to deal
@@ -929,6 +836,18 @@ Licensed under MIT license in the repository at https://github.com/jestjs/jest.g
929
836
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
930
837
  > SOFTWARE.
931
838
 
839
+ ### fdir
840
+
841
+ Licensed under MIT license in the repository at git+https://github.com/thecodrr/fdir.git.
842
+
843
+ > Copyright 2023 Abdullah Atta
844
+ >
845
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
846
+ >
847
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
848
+ >
849
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
850
+
932
851
  ### js-tokens
933
852
 
934
853
  Licensed under MIT license in the repository at lydell/js-tokens.
@@ -1128,59 +1047,6 @@ Licensed under MIT license in the repository at micromatch/picomatch.
1128
1047
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1129
1048
  > THE SOFTWARE.
1130
1049
 
1131
- ### pretty-format
1132
-
1133
- Licensed under MIT license in the repository at https://github.com/jestjs/jest.git.
1134
-
1135
- > MIT License
1136
- >
1137
- > Copyright (c) Meta Platforms, Inc. and affiliates.
1138
- > Copyright Contributors to the Jest project.
1139
- >
1140
- > Permission is hereby granted, free of charge, to any person obtaining a copy
1141
- > of this software and associated documentation files (the "Software"), to deal
1142
- > in the Software without restriction, including without limitation the rights
1143
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1144
- > copies of the Software, and to permit persons to whom the Software is
1145
- > furnished to do so, subject to the following conditions:
1146
- >
1147
- > The above copyright notice and this permission notice shall be included in all
1148
- > copies or substantial portions of the Software.
1149
- >
1150
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1151
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1152
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1153
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1154
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1155
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1156
- > SOFTWARE.
1157
-
1158
- ### react-is
1159
-
1160
- Licensed under MIT license in the repository at https://github.com/facebook/react.git.
1161
-
1162
- > MIT License
1163
- >
1164
- > Copyright (c) Facebook, Inc. and its affiliates.
1165
- >
1166
- > Permission is hereby granted, free of charge, to any person obtaining a copy
1167
- > of this software and associated documentation files (the "Software"), to deal
1168
- > in the Software without restriction, including without limitation the rights
1169
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1170
- > copies of the Software, and to permit persons to whom the Software is
1171
- > furnished to do so, subject to the following conditions:
1172
- >
1173
- > The above copyright notice and this permission notice shall be included in all
1174
- > copies or substantial portions of the Software.
1175
- >
1176
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1177
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1178
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1179
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1180
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1181
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1182
- > SOFTWARE.
1183
-
1184
1050
  ### readdirp
1185
1051
 
1186
1052
  Licensed under MIT license in the repository at https://github.com/paulmillr/readdirp.git.
@@ -1381,20 +1247,6 @@ Licensed under MIT license in the repository at chalk/strip-ansi.
1381
1247
  >
1382
1248
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1383
1249
 
1384
- ### supports-color
1385
-
1386
- Licensed under MIT license in the repository at chalk/supports-color.
1387
-
1388
- > MIT License
1389
- >
1390
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
1391
- >
1392
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1393
- >
1394
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1395
- >
1396
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1397
-
1398
1250
  ### tinyglobby
1399
1251
 
1400
1252
  Licensed under MIT license in the repository at git+https://github.com/SuperchupuDev/tinyglobby.git.
package/dist/0~8843.js CHANGED
@@ -9,9 +9,9 @@ import node_path from "node:path";
9
9
  import { isBuiltin } from "node:module";
10
10
  import node_inspector from "node:inspector";
11
11
  import node_fs from "node:fs";
12
- import { basename, bgColor, isDeno, dirname, castArray, resolve as pathe_M_eThtNZ_resolve, isDebug, color as logger_color, getForceColorEnv, ADDITIONAL_NODE_BUILTINS, needFlagExperimentalDetectModule, join } from "./6830.js";
12
+ import { basename, bgColor, isDeno, getTempRstestOutputDir, dirname, castArray, resolve as pathe_M_eThtNZ_resolve, getTempRstestOutputDirGlob, isDebug, color as logger_color, getForceColorEnv, ADDITIONAL_NODE_BUILTINS, needFlagExperimentalDetectModule, join } from "./6830.js";
13
13
  import { parseWorkerMetaMessage, createBirpc } from "./1983.js";
14
- import { TEMP_RSTEST_OUTPUT_DIR, TEMP_RSTEST_OUTPUT_DIR_GLOB } from "./4411.js";
14
+ import "./4411.js";
15
15
  import { posix } from "./7011.js";
16
16
  const DefaultMaxHeapSize = 1073741824;
17
17
  function memory_isMemorySufficient(options) {
@@ -368,7 +368,15 @@ const getNodeExecArgv = ()=>{
368
368
  ].filter(Boolean);
369
369
  };
370
370
  const createPool = async ({ context, recommendWorkerCount = 1 / 0 })=>{
371
- const execArgv = process.execArgv.filter((execArg)=>execArg.startsWith('--perf') || execArg.startsWith('--cpu-prof') || execArg.startsWith('--heap-prof') || execArg.startsWith('--diagnostic-dir'));
371
+ const blockedFlags = [
372
+ '--prof',
373
+ '--title'
374
+ ];
375
+ const execArgv = process.execArgv.filter((arg, i, arr)=>{
376
+ if (blockedFlags.some((f)=>arg === f || arg.startsWith(`${f}=`))) return false;
377
+ if (i > 0 && '--title' === arr[i - 1]) return false;
378
+ return true;
379
+ });
372
380
  const numCpus = getNumCpus();
373
381
  const { normalizedConfig: { pool: poolOptions, isolate }, reporters } = context;
374
382
  const threadsCount = 'watch' === context.command ? Math.max(Math.floor(numCpus / 2), 1) : Math.max(numCpus - 1, 1);
@@ -538,7 +546,7 @@ const createPool = async ({ context, recommendWorkerCount = 1 / 0 })=>{
538
546
  };
539
547
  let globalTeardownCallbacks = [];
540
548
  function applyEnvChanges(changes) {
541
- for(const key in changes)if (void 0 === changes[key]) delete process.env[key];
549
+ for(const key in changes)if (void 0 === changes[key]) Reflect.deleteProperty(process.env, key);
542
550
  else process.env[key] = changes[key];
543
551
  }
544
552
  const globalSetup_filename = fileURLToPath(import.meta.url);
@@ -622,8 +630,13 @@ const pluginBasic = (context)=>({
622
630
  chain.module.rule(CHAIN_ID.RULE.JS).oneOf(CHAIN_ID.ONE_OF.JS_MAIN).delete('type');
623
631
  });
624
632
  api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig, name })=>{
633
+ const outputDistPathRoot = context.normalizedConfig.output.distPath.root;
625
634
  const { normalizedConfig: { resolve, source, output, tools, dev, testEnvironment }, outputModule, rootPath } = context.projects.find((p)=>p.environmentName === name);
626
- const distRootDir = context.projects.length > 1 ? `${TEMP_RSTEST_OUTPUT_DIR}/${name}` : TEMP_RSTEST_OUTPUT_DIR;
635
+ const distRootDir = getTempRstestOutputDir({
636
+ distPathRoot: outputDistPathRoot,
637
+ environmentName: name,
638
+ multipleProjects: context.projects.length > 1
639
+ });
627
640
  return mergeEnvironmentConfig(config, {
628
641
  tools,
629
642
  resolve,
@@ -787,6 +800,7 @@ class TestFileWatchPlugin {
787
800
  const pluginEntryWatch = ({ isWatch, globTestSourceEntries, setupFiles, globalSetupFiles, context })=>({
788
801
  name: 'rstest:entry-watch',
789
802
  setup: (api)=>{
803
+ const outputDistPathRoot = context.normalizedConfig.output.distPath.root;
790
804
  api.modifyRspackConfig(async (config, { environment })=>{
791
805
  if (isWatch) {
792
806
  config.plugins.push(new TestFileWatchPlugin(environment.config.root));
@@ -802,7 +816,7 @@ const pluginEntryWatch = ({ isWatch, globTestSourceEntries, setupFiles, globalSe
802
816
  config.watchOptions.aggregateTimeout = 5;
803
817
  config.watchOptions.ignored = castArray(config.watchOptions.ignored || []);
804
818
  if (0 === config.watchOptions.ignored.length) config.watchOptions.ignored.push('**/.git', '**/node_modules');
805
- config.watchOptions.ignored.push(TEMP_RSTEST_OUTPUT_DIR_GLOB, context.normalizedConfig.coverage.reportsDirectory, ...Object.values(globalSetupFiles?.[environment.name] || {}), '**/*.snap');
819
+ config.watchOptions.ignored.push(getTempRstestOutputDirGlob(outputDistPathRoot), context.normalizedConfig.coverage.reportsDirectory, ...Object.values(globalSetupFiles?.[environment.name] || {}), '**/*.snap');
806
820
  const configFilePath = context.projects.find((project)=>project.environmentName === environment.name)?.configFilePath;
807
821
  if (configFilePath) config.watchOptions.ignored.push(configFilePath);
808
822
  } else {
@@ -819,9 +833,12 @@ const pluginEntryWatch = ({ isWatch, globTestSourceEntries, setupFiles, globalSe
819
833
  });
820
834
  }
821
835
  });
836
+ function hasInlineLoader(request) {
837
+ return request.split('!').length > 1;
838
+ }
822
839
  const autoExternalNodeModules = (outputModule)=>({ context, request, dependencyType, getResolve }, callback)=>{
823
840
  if (!request) return callback();
824
- if (request.startsWith('@swc/helpers/') || request.endsWith('.wasm')) return callback();
841
+ if (request.startsWith('@swc/helpers/') || request.endsWith('.wasm') || hasInlineLoader(request)) return callback();
825
842
  const doExternal = (externalPath = request)=>{
826
843
  callback(void 0, externalPath, 'commonjs' === dependencyType ? 'commonjs' : outputModule ? 'module-import' : 'import');
827
844
  };
@@ -846,10 +863,11 @@ const pluginExternal = (context)=>({
846
863
  name: 'rstest:external',
847
864
  setup: (api)=>{
848
865
  api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig, name })=>{
849
- const { normalizedConfig: { testEnvironment }, outputModule } = context.projects.find((p)=>p.environmentName === name);
866
+ const { normalizedConfig: { testEnvironment, output: { bundleDependencies } = {} }, outputModule } = context.projects.find((p)=>p.environmentName === name);
867
+ const shouldExternalize = void 0 === bundleDependencies ? 'node' === testEnvironment.name : !bundleDependencies;
850
868
  return mergeEnvironmentConfig(config, {
851
869
  output: {
852
- externals: 'node' === testEnvironment.name ? [
870
+ externals: shouldExternalize ? [
853
871
  autoExternalNodeModules(outputModule)
854
872
  ] : void 0
855
873
  },
@@ -871,7 +889,7 @@ const pluginExternal = (context)=>({
871
889
  class IgnoreModuleNotFoundErrorPlugin {
872
890
  apply(compiler) {
873
891
  compiler.hooks.done.tap('Rstest:IgnoreModuleNotFoundPlugin', (stats)=>{
874
- for(let i = stats.compilation.errors.length - 1; i >= 0; i--)if (/Module not found/.test(stats.compilation.errors[i].message)) stats.compilation.errors.splice(i, 1);
892
+ for(let i = stats.compilation.errors.length - 1; i >= 0; i--)if (stats.compilation.errors[i].message.includes('Module not found')) stats.compilation.errors.splice(i, 1);
875
893
  });
876
894
  }
877
895
  }
@@ -1010,20 +1028,20 @@ const pluginCacheControl = (setupFiles)=>({
1010
1028
  const rsbuild_dirname = posix.dirname(fileURLToPath(import.meta.url));
1011
1029
  function parseInlineSourceMapStr(code) {
1012
1030
  const inlineSourceMapRegex = /\/\/# sourceMappingURL=data:application\/json(?:;charset=utf-8)?;base64,(.+)\s*$/m;
1013
- const match = code.match(inlineSourceMapRegex);
1031
+ const match = inlineSourceMapRegex.exec(code);
1014
1032
  if (!match || !match[1]) return null;
1015
1033
  try {
1016
1034
  const base64Data = match[1];
1017
1035
  const decodedStr = Buffer.from(base64Data, 'base64').toString('utf-8');
1018
1036
  return decodedStr;
1019
- } catch (_error) {
1037
+ } catch {
1020
1038
  return null;
1021
1039
  }
1022
1040
  }
1023
1041
  const isMultiCompiler = (compiler)=>'compilers' in compiler && Array.isArray(compiler.compilers);
1024
- const prepareRsbuild = async (context, globTestSourceEntries, setupFiles, globalSetupFiles)=>{
1042
+ const prepareRsbuild = async (context, globTestSourceEntries, setupFiles, globalSetupFiles, targetNodeProjects)=>{
1025
1043
  const { command, normalizedConfig: { isolate, dev = {}, coverage, pool } } = context;
1026
- const projects = context.projects.filter((project)=>!project.normalizedConfig.browser.enabled);
1044
+ const projects = targetNodeProjects?.length ? targetNodeProjects : context.projects.filter((project)=>!project.normalizedConfig.browser.enabled);
1027
1045
  const debugMode = isDebug();
1028
1046
  logger.level = debugMode ? 'verbose' : 'error';
1029
1047
  const writeToDisk = dev.writeToDisk || debugMode;
@@ -1,6 +1,6 @@
1
1
  import "node:module";
2
- import { __webpack_require__ } from "./rslib-runtime.js";
3
- import "./6830.js";
2
+ import { __webpack_require__ } from "../0~rslib-runtime.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", {