@rstest/core 0.9.4 → 0.9.5
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.
- package/LICENSE.md +0 -228
- package/dist/0~8843.js +23 -13
- package/dist/0~browserLoader.js +1 -1
- package/dist/0~browser~1.js +4 -4
- package/dist/0~checkThresholds.js +1 -1
- package/dist/0~console.js +1 -1
- package/dist/0~fake-timers.js +1483 -0
- package/dist/0~generate.js +4 -3
- package/dist/0~happyDom.js +1 -1
- package/dist/0~jsdom.js +1 -1
- package/dist/0~listTests.js +3 -3
- package/dist/0~loadModule.js +1 -1
- package/dist/0~runTests.js +11 -4
- package/dist/0~snapshot.js +2140 -0
- package/dist/0~snapshot.js.LICENSE.txt +7 -0
- package/dist/0~utils.js +1 -1
- package/dist/1949.js +2919 -9808
- package/dist/1949.js.LICENSE.txt +1 -49
- package/dist/3145.js +318 -36
- package/dist/4411.js +232 -47
- package/dist/6830.js +61 -9
- package/dist/7552.js +22 -4918
- package/dist/9743.js +1982 -0
- package/dist/9784.js +1343 -0
- package/dist/{7552.js.LICENSE.txt → 9784.js.LICENSE.txt} +19 -8
- package/dist/browser-runtime/2~fake-timers.js +1653 -0
- package/dist/browser-runtime/2~snapshot.js +2138 -0
- package/dist/browser-runtime/2~snapshot.js.LICENSE.txt +7 -0
- package/dist/browser-runtime/723.js +2055 -10605
- package/dist/browser-runtime/723.js.LICENSE.txt +0 -17
- package/dist/browser-runtime/index.d.ts +189 -11
- package/dist/browser-runtime/rslib-runtime.js +0 -7
- package/dist/browser.d.ts +39 -5
- package/dist/browser.js +2 -2
- package/dist/globalSetupWorker.js +1 -1
- package/dist/index.d.ts +39 -5
- package/dist/mockRuntimeCode.js +2 -0
- package/dist/worker.d.ts +31 -5
- package/dist/worker.js +11 -9
- package/package.json +21 -22
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,44 +756,6 @@ 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
|
|
842
|
-
|
|
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.
|
|
869
|
-
|
|
870
|
-
> The MIT License (MIT)
|
|
871
|
-
> Copyright (c) 2015 Dmitry Ivanov
|
|
872
|
-
>
|
|
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:
|
|
874
|
-
>
|
|
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
759
|
### fdir
|
|
880
760
|
|
|
881
761
|
Licensed under MIT license in the repository at git+https://github.com/thecodrr/fdir.git.
|
|
@@ -888,47 +768,6 @@ Licensed under MIT license in the repository at git+https://github.com/thecodrr/
|
|
|
888
768
|
>
|
|
889
769
|
> 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.
|
|
890
770
|
|
|
891
|
-
### has-flag
|
|
892
|
-
|
|
893
|
-
Licensed under MIT license in the repository at sindresorhus/has-flag.
|
|
894
|
-
|
|
895
|
-
> MIT License
|
|
896
|
-
>
|
|
897
|
-
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
898
|
-
>
|
|
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:
|
|
900
|
-
>
|
|
901
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
902
|
-
>
|
|
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.
|
|
904
|
-
|
|
905
|
-
### jest-diff
|
|
906
|
-
|
|
907
|
-
Licensed under MIT license in the repository at https://github.com/jestjs/jest.git.
|
|
908
|
-
|
|
909
|
-
> MIT License
|
|
910
|
-
>
|
|
911
|
-
> Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
912
|
-
> Copyright Contributors to the Jest project.
|
|
913
|
-
>
|
|
914
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
915
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
916
|
-
> in the Software without restriction, including without limitation the rights
|
|
917
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
918
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
919
|
-
> furnished to do so, subject to the following conditions:
|
|
920
|
-
>
|
|
921
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
922
|
-
> copies or substantial portions of the Software.
|
|
923
|
-
>
|
|
924
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
925
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
926
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
927
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
928
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
929
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
930
|
-
> SOFTWARE.
|
|
931
|
-
|
|
932
771
|
### js-tokens
|
|
933
772
|
|
|
934
773
|
Licensed under MIT license in the repository at lydell/js-tokens.
|
|
@@ -1128,59 +967,6 @@ Licensed under MIT license in the repository at micromatch/picomatch.
|
|
|
1128
967
|
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1129
968
|
> THE SOFTWARE.
|
|
1130
969
|
|
|
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
970
|
### readdirp
|
|
1185
971
|
|
|
1186
972
|
Licensed under MIT license in the repository at https://github.com/paulmillr/readdirp.git.
|
|
@@ -1381,20 +1167,6 @@ Licensed under MIT license in the repository at chalk/strip-ansi.
|
|
|
1381
1167
|
>
|
|
1382
1168
|
> 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
1169
|
|
|
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
1170
|
### tinyglobby
|
|
1399
1171
|
|
|
1400
1172
|
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
|
|
14
|
+
import "./4411.js";
|
|
15
15
|
import { posix } from "./7011.js";
|
|
16
16
|
const DefaultMaxHeapSize = 1073741824;
|
|
17
17
|
function memory_isMemorySufficient(options) {
|
|
@@ -538,7 +538,7 @@ const createPool = async ({ context, recommendWorkerCount = 1 / 0 })=>{
|
|
|
538
538
|
};
|
|
539
539
|
let globalTeardownCallbacks = [];
|
|
540
540
|
function applyEnvChanges(changes) {
|
|
541
|
-
for(const key in changes)if (void 0 === changes[key])
|
|
541
|
+
for(const key in changes)if (void 0 === changes[key]) Reflect.deleteProperty(process.env, key);
|
|
542
542
|
else process.env[key] = changes[key];
|
|
543
543
|
}
|
|
544
544
|
const globalSetup_filename = fileURLToPath(import.meta.url);
|
|
@@ -622,8 +622,13 @@ const pluginBasic = (context)=>({
|
|
|
622
622
|
chain.module.rule(CHAIN_ID.RULE.JS).oneOf(CHAIN_ID.ONE_OF.JS_MAIN).delete('type');
|
|
623
623
|
});
|
|
624
624
|
api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig, name })=>{
|
|
625
|
+
const outputDistPathRoot = context.normalizedConfig.output.distPath.root;
|
|
625
626
|
const { normalizedConfig: { resolve, source, output, tools, dev, testEnvironment }, outputModule, rootPath } = context.projects.find((p)=>p.environmentName === name);
|
|
626
|
-
const distRootDir =
|
|
627
|
+
const distRootDir = getTempRstestOutputDir({
|
|
628
|
+
distPathRoot: outputDistPathRoot,
|
|
629
|
+
environmentName: name,
|
|
630
|
+
multipleProjects: context.projects.length > 1
|
|
631
|
+
});
|
|
627
632
|
return mergeEnvironmentConfig(config, {
|
|
628
633
|
tools,
|
|
629
634
|
resolve,
|
|
@@ -787,6 +792,7 @@ class TestFileWatchPlugin {
|
|
|
787
792
|
const pluginEntryWatch = ({ isWatch, globTestSourceEntries, setupFiles, globalSetupFiles, context })=>({
|
|
788
793
|
name: 'rstest:entry-watch',
|
|
789
794
|
setup: (api)=>{
|
|
795
|
+
const outputDistPathRoot = context.normalizedConfig.output.distPath.root;
|
|
790
796
|
api.modifyRspackConfig(async (config, { environment })=>{
|
|
791
797
|
if (isWatch) {
|
|
792
798
|
config.plugins.push(new TestFileWatchPlugin(environment.config.root));
|
|
@@ -802,7 +808,7 @@ const pluginEntryWatch = ({ isWatch, globTestSourceEntries, setupFiles, globalSe
|
|
|
802
808
|
config.watchOptions.aggregateTimeout = 5;
|
|
803
809
|
config.watchOptions.ignored = castArray(config.watchOptions.ignored || []);
|
|
804
810
|
if (0 === config.watchOptions.ignored.length) config.watchOptions.ignored.push('**/.git', '**/node_modules');
|
|
805
|
-
config.watchOptions.ignored.push(
|
|
811
|
+
config.watchOptions.ignored.push(getTempRstestOutputDirGlob(outputDistPathRoot), context.normalizedConfig.coverage.reportsDirectory, ...Object.values(globalSetupFiles?.[environment.name] || {}), '**/*.snap');
|
|
806
812
|
const configFilePath = context.projects.find((project)=>project.environmentName === environment.name)?.configFilePath;
|
|
807
813
|
if (configFilePath) config.watchOptions.ignored.push(configFilePath);
|
|
808
814
|
} else {
|
|
@@ -819,9 +825,12 @@ const pluginEntryWatch = ({ isWatch, globTestSourceEntries, setupFiles, globalSe
|
|
|
819
825
|
});
|
|
820
826
|
}
|
|
821
827
|
});
|
|
828
|
+
function hasInlineLoader(request) {
|
|
829
|
+
return request.split('!').length > 1;
|
|
830
|
+
}
|
|
822
831
|
const autoExternalNodeModules = (outputModule)=>({ context, request, dependencyType, getResolve }, callback)=>{
|
|
823
832
|
if (!request) return callback();
|
|
824
|
-
if (request.startsWith('@swc/helpers/') || request.endsWith('.wasm')) return callback();
|
|
833
|
+
if (request.startsWith('@swc/helpers/') || request.endsWith('.wasm') || hasInlineLoader(request)) return callback();
|
|
825
834
|
const doExternal = (externalPath = request)=>{
|
|
826
835
|
callback(void 0, externalPath, 'commonjs' === dependencyType ? 'commonjs' : outputModule ? 'module-import' : 'import');
|
|
827
836
|
};
|
|
@@ -846,10 +855,11 @@ const pluginExternal = (context)=>({
|
|
|
846
855
|
name: 'rstest:external',
|
|
847
856
|
setup: (api)=>{
|
|
848
857
|
api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig, name })=>{
|
|
849
|
-
const { normalizedConfig: { testEnvironment }, outputModule } = context.projects.find((p)=>p.environmentName === name);
|
|
858
|
+
const { normalizedConfig: { testEnvironment, output: { bundleDependencies } = {} }, outputModule } = context.projects.find((p)=>p.environmentName === name);
|
|
859
|
+
const shouldExternalize = void 0 === bundleDependencies ? 'node' === testEnvironment.name : !bundleDependencies;
|
|
850
860
|
return mergeEnvironmentConfig(config, {
|
|
851
861
|
output: {
|
|
852
|
-
externals:
|
|
862
|
+
externals: shouldExternalize ? [
|
|
853
863
|
autoExternalNodeModules(outputModule)
|
|
854
864
|
] : void 0
|
|
855
865
|
},
|
|
@@ -871,7 +881,7 @@ const pluginExternal = (context)=>({
|
|
|
871
881
|
class IgnoreModuleNotFoundErrorPlugin {
|
|
872
882
|
apply(compiler) {
|
|
873
883
|
compiler.hooks.done.tap('Rstest:IgnoreModuleNotFoundPlugin', (stats)=>{
|
|
874
|
-
for(let i = stats.compilation.errors.length - 1; i >= 0; i--)if (
|
|
884
|
+
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
885
|
});
|
|
876
886
|
}
|
|
877
887
|
}
|
|
@@ -1010,20 +1020,20 @@ const pluginCacheControl = (setupFiles)=>({
|
|
|
1010
1020
|
const rsbuild_dirname = posix.dirname(fileURLToPath(import.meta.url));
|
|
1011
1021
|
function parseInlineSourceMapStr(code) {
|
|
1012
1022
|
const inlineSourceMapRegex = /\/\/# sourceMappingURL=data:application\/json(?:;charset=utf-8)?;base64,(.+)\s*$/m;
|
|
1013
|
-
const match =
|
|
1023
|
+
const match = inlineSourceMapRegex.exec(code);
|
|
1014
1024
|
if (!match || !match[1]) return null;
|
|
1015
1025
|
try {
|
|
1016
1026
|
const base64Data = match[1];
|
|
1017
1027
|
const decodedStr = Buffer.from(base64Data, 'base64').toString('utf-8');
|
|
1018
1028
|
return decodedStr;
|
|
1019
|
-
} catch
|
|
1029
|
+
} catch {
|
|
1020
1030
|
return null;
|
|
1021
1031
|
}
|
|
1022
1032
|
}
|
|
1023
1033
|
const isMultiCompiler = (compiler)=>'compilers' in compiler && Array.isArray(compiler.compilers);
|
|
1024
|
-
const prepareRsbuild = async (context, globTestSourceEntries, setupFiles, globalSetupFiles)=>{
|
|
1034
|
+
const prepareRsbuild = async (context, globTestSourceEntries, setupFiles, globalSetupFiles, targetNodeProjects)=>{
|
|
1025
1035
|
const { command, normalizedConfig: { isolate, dev = {}, coverage, pool } } = context;
|
|
1026
|
-
const projects = context.projects.filter((project)=>!project.normalizedConfig.browser.enabled);
|
|
1036
|
+
const projects = targetNodeProjects?.length ? targetNodeProjects : context.projects.filter((project)=>!project.normalizedConfig.browser.enabled);
|
|
1027
1037
|
const debugMode = isDebug();
|
|
1028
1038
|
logger.level = debugMode ? 'verbose' : 'error';
|
|
1029
1039
|
const writeToDisk = dev.writeToDisk || debugMode;
|
package/dist/0~browserLoader.js
CHANGED
|
@@ -4,7 +4,7 @@ import { pathToFileURL } from "node:url";
|
|
|
4
4
|
import "./4411.js";
|
|
5
5
|
import { logger as logger_logger, color as logger_color } from "./6830.js";
|
|
6
6
|
async function loadBrowserModule(options = {}) {
|
|
7
|
-
const coreVersion = "0.9.
|
|
7
|
+
const coreVersion = "0.9.5";
|
|
8
8
|
const { projectRoots = [] } = options;
|
|
9
9
|
let browserModule;
|
|
10
10
|
let browserVersion;
|
package/dist/0~browser~1.js
CHANGED
|
@@ -287,7 +287,7 @@ function getRunCommand(agent) {
|
|
|
287
287
|
].join(' ');
|
|
288
288
|
}
|
|
289
289
|
function getConfigFileName() {
|
|
290
|
-
return 'rstest.browser.config.
|
|
290
|
+
return 'rstest.browser.config.mts';
|
|
291
291
|
}
|
|
292
292
|
async function create(options = {}) {
|
|
293
293
|
const cwd = process.cwd();
|
|
@@ -372,7 +372,7 @@ async function createInteractive(cwd, projectInfo, isAgent) {
|
|
|
372
372
|
}
|
|
373
373
|
const provider = providerSelection;
|
|
374
374
|
const preview = computeFilePreview(cwd, projectInfo);
|
|
375
|
-
const deps = getDependenciesWithVersions(effectiveFramework, provider, "0.9.
|
|
375
|
+
const deps = getDependenciesWithVersions(effectiveFramework, provider, "0.9.5");
|
|
376
376
|
const depsList = Object.entries(deps).map(([name, version])=>`${name}@${version}`).join(', ');
|
|
377
377
|
const previewLines = [
|
|
378
378
|
`${logger_color.cyan('+')} Create ${preview.configFile}`,
|
|
@@ -448,9 +448,9 @@ async function generateFiles(cwd, projectInfo, provider) {
|
|
|
448
448
|
writeFile(testPath, testContent);
|
|
449
449
|
createdFiles.push(`${testDir}/${testFileName}`);
|
|
450
450
|
updatePackageJsonScripts(cwd, {
|
|
451
|
-
'test:browser': 'rstest --config=rstest.browser.config.
|
|
451
|
+
'test:browser': 'rstest --config=rstest.browser.config.mts'
|
|
452
452
|
});
|
|
453
|
-
const deps = getDependenciesWithVersions(effectiveFramework, provider, "0.9.
|
|
453
|
+
const deps = getDependenciesWithVersions(effectiveFramework, provider, "0.9.5");
|
|
454
454
|
updatePackageJsonDevDeps(cwd, deps);
|
|
455
455
|
return createdFiles;
|
|
456
456
|
}
|
|
@@ -2,7 +2,7 @@ import "node:module";
|
|
|
2
2
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
3
|
import "./4411.js";
|
|
4
4
|
import { relative, color as logger_color } from "./6830.js";
|
|
5
|
-
const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.
|
|
5
|
+
const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js");
|
|
6
6
|
var picomatch_default = /*#__PURE__*/ __webpack_require__.n(picomatch);
|
|
7
7
|
const THRESHOLD_KEYS = [
|
|
8
8
|
'lines',
|
package/dist/0~console.js
CHANGED
|
@@ -94,7 +94,7 @@ function createCustomConsole({ rpc, testPath, printConsoleTrace }) {
|
|
|
94
94
|
const endTime = RealDate.now();
|
|
95
95
|
const time = endTime - startTime.getTime();
|
|
96
96
|
this._log('time', format(`${label}: ${prettyTime(time)}`));
|
|
97
|
-
|
|
97
|
+
Reflect.deleteProperty(this._timers, label);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
timeLog(label = 'default', ...data) {
|