Skip to content

Conversation

@Hotell
Copy link
Contributor

@Hotell Hotell commented Feb 14, 2023

New Behavior

jest 27

  • https://jestjs.io/blog/2021/05/25/jest-27
  • fakeTimers are in modern mode by default
  • jsdom is not set as default anymore. This PR's sets every project testEnvironment to jsdom to make things work. There can be more perf optimizations wins with further configuration setup on package/test basis ( using jsdom adds huge overhead for jest test speeds )

ts-jest 27

  • removed deprecated settings that no longer work in 27

Issues

  • some v0 tests are failing, even legacy fake timers wont make them pass 3d80e23

Related Issue(s)

@size-auditor
Copy link

size-auditor bot commented Feb 14, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: d858041352851ffdeb5ac8d51e18cd44b46414ab (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 14, 2023

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 bac018b:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 14, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1384 1295 5000
Button mount 938 967 5000
Field mount 2096 2052 5000
FluentProvider mount 1664 1596 5000
FluentProviderWithTheme mount 644 641 10
FluentProviderWithTheme virtual-rerender 587 600 10
FluentProviderWithTheme virtual-rerender-with-unmount 633 625 10
InfoButton mount 566 589 5000
MakeStyles mount 1943 1891 50000
Persona mount 3064 3046 5000
SpinButton mount 2538 2486 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 14, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
554 B
348 B
priority-overflow
createOverflowManager
3.194 kB
1.314 kB
react-accordion
Accordion (including children components)
85.876 kB
26.019 kB
react-alert
Alert
87.465 kB
21.569 kB
react-avatar
Avatar
51.192 kB
14.043 kB
react-avatar
AvatarGroup
15.42 kB
6.167 kB
react-avatar
AvatarGroupItem
67.414 kB
18.551 kB
react-badge
Badge
23.113 kB
7.069 kB
react-badge
CounterBadge
24.002 kB
7.374 kB
react-badge
PresenceBadge
25.438 kB
7.254 kB
react-button
Button
36.888 kB
9.412 kB
react-button
CompoundButton
44.063 kB
10.885 kB
react-button
MenuButton
41.568 kB
10.742 kB
react-button
SplitButton
49.997 kB
12.321 kB
react-button
ToggleButton
55.252 kB
11.331 kB
react-card
Card - All
83.548 kB
23.894 kB
react-card
Card
78.317 kB
22.433 kB
react-card
CardFooter
9.045 kB
3.806 kB
react-card
CardHeader
10.984 kB
4.509 kB
react-card
CardPreview
9.852 kB
4.159 kB
react-checkbox
Checkbox
33.091 kB
10.319 kB
react-checkbox
CheckboxField
39.996 kB
12.206 kB
react-combobox
Combobox (including child components)
85.289 kB
27.363 kB
react-combobox
ComboboxField
81.706 kB
27.152 kB
react-combobox
Dropdown (including child components)
83.976 kB
27.116 kB
react-components
react-components: Button, FluentProvider & webLightTheme
64.09 kB
17.544 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
201.998 kB
56.27 kB
react-components
react-components: FluentProvider & webLightTheme
35.049 kB
11.533 kB
react-dialog
Dialog (including children components)
89.719 kB
26.685 kB
react-divider
Divider
17.11 kB
6.18 kB
react-field
Field
17.673 kB
6.543 kB
react-image
Image
11.259 kB
4.473 kB
react-infobutton
InfoButton
127.204 kB
38.739 kB
react-input
Input
22.94 kB
7.214 kB
react-input
InputField
32.819 kB
10.111 kB
react-label
Label
9.822 kB
4.066 kB
react-link
Link
12.306 kB
5.073 kB
react-menu
Menu (including children components)
126.535 kB
38.735 kB
react-menu
Menu (including selectable components)
129.604 kB
39.248 kB
react-overflow
hooks only
11.214 kB
4.271 kB
react-persona
Persona
58.207 kB
15.986 kB
react-popover
Popover
114.277 kB
35.179 kB
react-portal
Portal
11.377 kB
4.179 kB
react-portal-compat
PortalCompatProvider
6.324 kB
2.129 kB
react-positioning
usePositioning
22.985 kB
8.528 kB
react-progress
ProgressBar
13.59 kB
5.24 kB
react-progress
ProgressField
23.885 kB
8.385 kB
react-provider
FluentProvider
17.116 kB
6.332 kB
react-radio
Radio
32.676 kB
10.616 kB
react-radio
RadioGroup
14.885 kB
5.933 kB
react-radio
RadioGroupField
24.963 kB
9.07 kB
react-select
Select
24.145 kB
8.271 kB
react-select
SelectField
33.384 kB
10.779 kB
react-slider
Slider
33.091 kB
10.555 kB
react-slider
SliderField
42.922 kB
13.465 kB
react-spinbutton
SpinButton
32.83 kB
9.864 kB
react-spinbutton
SpinButtonField
41.766 kB
12.254 kB
react-spinner
Spinner
20.62 kB
6.682 kB
react-switch
Switch
28.225 kB
8.755 kB
react-switch
SwitchField
35.01 kB
10.655 kB
react-table
DataGrid
143.646 kB
39.157 kB
react-table
Table (Primitives only)
43.776 kB
12.063 kB
react-table
Table as DataGrid
134.4 kB
34.514 kB
react-table
Table (Selection only)
82.316 kB
20.576 kB
react-table
Table (Sort only)
81.637 kB
20.386 kB
react-text
Text - Default
12.261 kB
4.819 kB
react-text
Text - Wrappers
15.571 kB
5.23 kB
react-textarea
Textarea
26.336 kB
8.585 kB
react-textarea
TextareaField
36.537 kB
11.504 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
30.908 kB
6.714 kB
react-theme
Teams: Light theme
17.776 kB
5.141 kB
react-tooltip
Tooltip
46.095 kB
16.14 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against d858041352851ffdeb5ac8d51e18cd44b46414ab

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-northstar)

⚠️ No perf measurements available

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 14, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 14, 2023

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 1189 1173 5000
Breadcrumb mount 2966 2975 1000
Checkbox mount 2638 2644 5000
CheckboxBase mount 2375 2347 5000
ChoiceGroup mount 4433 4441 5000
ComboBox mount 1258 1272 1000
CommandBar mount 9653 9664 1000
ContextualMenu mount 14871 15199 1000
DefaultButton mount 1376 1368 5000
DetailsRow mount 3507 3401 5000
DetailsRowFast mount 3430 3446 5000
DetailsRowNoStyles mount 3299 3328 5000
Dialog mount 3068 3088 1000
DocumentCardTitle mount 593 590 1000
Dropdown mount 3218 3209 5000
FocusTrapZone mount 2002 2006 5000
FocusZone mount 1959 1967 5000
GroupedList mount 53477 59859 2
GroupedList virtual-rerender 24771 24895 2
GroupedList virtual-rerender-with-unmount 91602 92199 2
GroupedListV2 mount 571 553 2
GroupedListV2 virtual-rerender 557 551 2
GroupedListV2 virtual-rerender-with-unmount 574 570 2
IconButton mount 1901 1919 5000
Label mount 739 740 5000
Layer mount 4334 4385 5000
Link mount 828 842 5000
MenuButton mount 1689 1678 5000
MessageBar mount 2333 2307 5000
Nav mount 3256 3258 1000
OverflowSet mount 1349 1375 5000
Panel mount 2564 2571 1000
Persona mount 1313 1327 1000
Pivot mount 1651 1632 1000
PrimaryButton mount 1530 1520 5000
Rating mount 7019 7044 5000
SearchBox mount 1507 1533 5000
Shimmer mount 2881 2910 5000
Slider mount 2131 2115 5000
SpinButton mount 4692 4762 5000
Spinner mount 816 800 5000
SplitButton mount 3118 3129 5000
Stack mount 830 848 5000
StackWithIntrinsicChildren mount 2322 2355 5000
StackWithTextChildren mount 4764 4815 5000
SwatchColorPicker mount 10536 10387 5000
TagPicker mount 2694 2613 5000
TeachingBubble mount 95621 95093 5000
Text mount 784 784 5000
TextField mount 1606 1552 5000
ThemeProvider mount 1515 1517 5000
ThemeProvider virtual-rerender 1070 1073 5000
ThemeProvider virtual-rerender-with-unmount 2156 2164 5000
Toggle mount 1112 1115 5000
buttonNative mount 537 541 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 14, 2023

🕵 FluentUI-v0 No visual regressions between this PR and main

@Hotell Hotell force-pushed the hotell/jest/27 branch 4 times, most recently from b6b2487 to e622693 Compare February 20, 2023 17:34
@Hotell Hotell marked this pull request as ready for review February 21, 2023 15:10
@Hotell Hotell requested review from a team as code owners February 21, 2023 15:10
@Hotell Hotell enabled auto-merge (squash) February 24, 2023 10:40
@Hotell Hotell merged commit 1dc9d3f into microsoft:master Feb 24, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Feb 24, 2023
* master: (93 commits)
  chore: migrate to jest 27 (microsoft#26835)
  chore: make lint task run without need of build (microsoft#26872)
  chore(react-table): exports UseTableSelectionOptions (microsoft#26892)
  applying package updates
  fix(react-card): allow elements to grow to fill the available space (microsoft#26616)
  fix: Popover without focus trap should not be aria-hidden (microsoft#26932)
  applying package updates
  applying package updates
  fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574)
  fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905)
  fix: Removing possible recursive loop in Coachmark (microsoft#26934)
  Combobox: Fix cursor jumping to the end of input (microsoft#26931)
  Fix missing icons on website (microsoft#26797)
  fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881)
  chore: Clean up Input's interactive styles (microsoft#26865)
  Remove codeowners from change files (microsoft#26935)
  chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904)
  docs: Remove testing code from MenuList example (microsoft#26929)
  chore: refactor SpinButton to use makeResetStyles (microsoft#26867)
  feat: Set overflow on positioned element when `autosize` is applied (microsoft#26868)
  ...
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Mar 15, 2023
…r-component

* feat/drawer-base-component: (141 commits)
  remove DrawerContainer
  feat: WIP add initial draft for Drawer and DrawerContainer
  chore: migrate to jest 27 (microsoft#26835)
  chore: make lint task run without need of build (microsoft#26872)
  chore(react-table): exports UseTableSelectionOptions (microsoft#26892)
  applying package updates
  fix(react-card): allow elements to grow to fill the available space (microsoft#26616)
  fix: Popover without focus trap should not be aria-hidden (microsoft#26932)
  applying package updates
  applying package updates
  fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574)
  fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905)
  fix: Removing possible recursive loop in Coachmark (microsoft#26934)
  Combobox: Fix cursor jumping to the end of input (microsoft#26931)
  Fix missing icons on website (microsoft#26797)
  fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881)
  chore: Clean up Input's interactive styles (microsoft#26865)
  Remove codeowners from change files (microsoft#26935)
  chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904)
  docs: Remove testing code from MenuList example (microsoft#26929)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update jest and ts-jest to 27

6 participants