-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: migrate to jest 29 #27935
chore: migrate to jest 29 #27935
Conversation
📊 Bundle size reportUnchanged fixtures
|
🕵 fluentuiv8 No visual regressions between this PR and main |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 561 | 583 | 5000 | |
Button | mount | 292 | 306 | 5000 | |
Field | mount | 1006 | 986 | 5000 | |
FluentProvider | mount | 636 | 656 | 5000 | |
FluentProviderWithTheme | mount | 71 | 80 | 10 | |
FluentProviderWithTheme | virtual-rerender | 70 | 81 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 72 | 81 | 10 | |
InfoButton | mount | 8 | 14 | 5000 | |
MakeStyles | mount | 853 | 863 | 50000 | |
Persona | mount | 1632 | 1627 | 5000 | |
SpinButton | mount | 1280 | 1291 | 5000 |
Perf Analysis (
|
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
CardMinimalPerf.default | 327 | 305 | 1.07:1 |
InputMinimalPerf.default | 568 | 530 | 1.07:1 |
LoaderMinimalPerf.default | 207 | 193 | 1.07:1 |
RefMinimalPerf.default | 115 | 108 | 1.06:1 |
SegmentMinimalPerf.default | 203 | 191 | 1.06:1 |
ChatDuplicateMessagesPerf.default | 152 | 145 | 1.05:1 |
LabelMinimalPerf.default | 226 | 216 | 1.05:1 |
SkeletonMinimalPerf.default | 204 | 197 | 1.04:1 |
SliderMinimalPerf.default | 722 | 694 | 1.04:1 |
AttachmentSlotsPerf.default | 663 | 644 | 1.03:1 |
FlexMinimalPerf.default | 157 | 152 | 1.03:1 |
ReactionMinimalPerf.default | 221 | 214 | 1.03:1 |
AccordionMinimalPerf.default | 87 | 85 | 1.02:1 |
CheckboxMinimalPerf.default | 1183 | 1162 | 1.02:1 |
EmbedMinimalPerf.default | 1777 | 1739 | 1.02:1 |
LayoutMinimalPerf.default | 202 | 199 | 1.02:1 |
ListWith60ListItems.default | 367 | 361 | 1.02:1 |
PortalMinimalPerf.default | 87 | 85 | 1.02:1 |
ProviderMergeThemesPerf.default | 676 | 663 | 1.02:1 |
TextMinimalPerf.default | 193 | 190 | 1.02:1 |
ToolbarMinimalPerf.default | 550 | 540 | 1.02:1 |
BoxMinimalPerf.default | 191 | 189 | 1.01:1 |
ButtonMinimalPerf.default | 85 | 84 | 1.01:1 |
ButtonOverridesMissPerf.default | 641 | 635 | 1.01:1 |
DropdownMinimalPerf.default | 1425 | 1405 | 1.01:1 |
FormMinimalPerf.default | 227 | 225 | 1.01:1 |
HeaderSlotsPerf.default | 475 | 470 | 1.01:1 |
MenuButtonMinimalPerf.default | 955 | 949 | 1.01:1 |
RosterPerf.default | 1527 | 1516 | 1.01:1 |
StatusMinimalPerf.default | 395 | 392 | 1.01:1 |
TreeMinimalPerf.default | 487 | 484 | 1.01:1 |
DatepickerMinimalPerf.default | 3575 | 3575 | 1:1 |
DialogMinimalPerf.default | 452 | 454 | 1:1 |
GridMinimalPerf.default | 188 | 188 | 1:1 |
ListCommonPerf.default | 405 | 403 | 1:1 |
ListNestedPerf.default | 315 | 314 | 1:1 |
SplitButtonMinimalPerf.default | 2289 | 2299 | 1:1 |
TableMinimalPerf.default | 240 | 241 | 1:1 |
TreeWith60ListItems.default | 86 | 86 | 1:1 |
AvatarMinimalPerf.default | 110 | 111 | 0.99:1 |
DropdownManyItemsPerf.default | 392 | 396 | 0.99:1 |
ItemLayoutMinimalPerf.default | 723 | 728 | 0.99:1 |
PopupMinimalPerf.default | 340 | 344 | 0.99:1 |
TableManyItemsPerf.default | 1133 | 1140 | 0.99:1 |
CustomToolbarPrototype.default | 1440 | 1452 | 0.99:1 |
TooltipMinimalPerf.default | 1252 | 1261 | 0.99:1 |
AnimationMinimalPerf.default | 293 | 298 | 0.98:1 |
ButtonSlotsPerf.default | 313 | 318 | 0.98:1 |
MenuMinimalPerf.default | 494 | 502 | 0.98:1 |
ProviderMinimalPerf.default | 201 | 205 | 0.98:1 |
RadioGroupMinimalPerf.default | 262 | 267 | 0.98:1 |
IconMinimalPerf.default | 370 | 379 | 0.98:1 |
TextAreaMinimalPerf.default | 280 | 285 | 0.98:1 |
ChatMinimalPerf.default | 438 | 450 | 0.97:1 |
ListMinimalPerf.default | 302 | 312 | 0.97:1 |
CarouselMinimalPerf.default | 260 | 275 | 0.95:1 |
ChatWithPopoverPerf.default | 187 | 196 | 0.95:1 |
HeaderMinimalPerf.default | 199 | 210 | 0.95:1 |
DividerMinimalPerf.default | 199 | 211 | 0.94:1 |
ImageMinimalPerf.default | 221 | 234 | 0.94:1 |
VideoMinimalPerf.default | 414 | 440 | 0.94:1 |
AlertMinimalPerf.default | 155 | 169 | 0.92:1 |
AttachmentMinimalPerf.default | 73 | 79 | 0.92:1 |
🕵 FluentUI-v0 No visual regressions between this PR and main |
🕵 fluentuiv9 No visual regressions between this PR and main |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
BaseButton | mount | 616 | 635 | 5000 | |
Breadcrumb | mount | 1690 | 1657 | 1000 | |
Checkbox | mount | 1683 | 1704 | 5000 | |
CheckboxBase | mount | 1464 | 1475 | 5000 | |
ChoiceGroup | mount | 2958 | 2931 | 5000 | |
ComboBox | mount | 645 | 675 | 1000 | |
CommandBar | mount | 6212 | 6216 | 1000 | |
ContextualMenu | mount | 11728 | 11849 | 1000 | |
DefaultButton | mount | 738 | 751 | 5000 | |
DetailsRow | mount | 2210 | 2198 | 5000 | |
DetailsRowFast | mount | 2209 | 2189 | 5000 | |
DetailsRowNoStyles | mount | 2020 | 1998 | 5000 | |
Dialog | mount | 2588 | 2610 | 1000 | |
DocumentCardTitle | mount | 233 | 226 | 1000 | |
Dropdown | mount | 1984 | 1976 | 5000 | |
FocusTrapZone | mount | 1115 | 1121 | 5000 | |
FocusZone | mount | 1050 | 1067 | 5000 | |
GroupedList | mount | 41746 | 41980 | 2 | |
GroupedList | virtual-rerender | 20119 | 20147 | 2 | |
GroupedList | virtual-rerender-with-unmount | 51085 | 51191 | 2 | |
GroupedListV2 | mount | 231 | 223 | 2 | |
GroupedListV2 | virtual-rerender | 221 | 213 | 2 | |
GroupedListV2 | virtual-rerender-with-unmount | 225 | 224 | 2 | |
IconButton | mount | 1101 | 1116 | 5000 | |
Label | mount | 351 | 339 | 5000 | |
Layer | mount | 2726 | 2709 | 5000 | |
Link | mount | 385 | 399 | 5000 | |
MenuButton | mount | 943 | 969 | 5000 | |
MessageBar | mount | 22062 | 22095 | 5000 | |
Nav | mount | 1978 | 1959 | 1000 | |
OverflowSet | mount | 810 | 791 | 5000 | |
Panel | mount | 1786 | 1746 | 1000 | |
Persona | mount | 770 | 774 | 1000 | |
Pivot | mount | 891 | 885 | 1000 | |
PrimaryButton | mount | 863 | 867 | 5000 | |
Rating | mount | 4683 | 4698 | 5000 | |
SearchBox | mount | 920 | 929 | 5000 | |
Shimmer | mount | 1853 | 1862 | 5000 | |
Slider | mount | 1387 | 1338 | 5000 | |
SpinButton | mount | 2889 | 2884 | 5000 | |
Spinner | mount | 401 | 390 | 5000 | |
SplitButton | mount | 1876 | 1880 | 5000 | |
Stack | mount | 443 | 416 | 5000 | |
StackWithIntrinsicChildren | mount | 881 | 862 | 5000 | |
StackWithTextChildren | mount | 2684 | 2708 | 5000 | |
SwatchColorPicker | mount | 6016 | 6066 | 5000 | |
TagPicker | mount | 1458 | 1421 | 5000 | |
Text | mount | 363 | 373 | 5000 | |
TextField | mount | 925 | 964 | 5000 | |
ThemeProvider | mount | 831 | 833 | 5000 | |
ThemeProvider | virtual-rerender | 596 | 601 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 1286 | 1284 | 5000 | |
Toggle | mount | 609 | 622 | 5000 | |
buttonNative | mount | 187 | 199 | 5000 |
9b8dffd
to
2051601
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5cd7349:
|
…hObject jest matcher used for DOM testing
…hanges introduced in new jest
…jest.fn not being called properly
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 3d73007c50ca4008618498a998cdaed5675bbda6 (build) |
New Behavior
jest:
jest.fn
creationtoMatchObject
issues on test against DOM objects (jsdom related ?) / [Bug]: toMatchObject on document.body makes Jest freeze jestjs/jest#14133ts-jest:
globals
is deprecated - v8 has been migrated in this PR / v9 will be migrated in separate PRBlockers
Related Issue(s)