Skip to content

Commit 3b777c8

Browse files
authored
[test] Update test-utils and remove enzyme (#473)
1 parent 55ba1a8 commit 3b777c8

File tree

76 files changed

+370
-853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+370
-853
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"@babel/plugin-transform-react-constant-elements": "^7.24.6",
7878
"@babel/preset-typescript": "^7.24.6",
7979
"@mui/internal-docs-utils": "^1.0.7",
80-
"@mui/internal-test-utils": "1.0.0-dev.20240529-082515-213b5e33ab",
80+
"@mui/internal-test-utils": "1.0.3",
8181
"@types/autosuggest-highlight": "^3.2.3",
8282
"@types/chai": "^4.3.16",
8383
"@types/node": "^18.19.33",

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,16 @@
7676
"@babel/preset-react": "^7.24.6",
7777
"@babel/preset-typescript": "^7.24.6",
7878
"@babel/register": "^7.24.6",
79-
"@mnajdova/enzyme-adapter-react-18": "^0.2.0",
8079
"@mui/internal-docs-utils": "^1.0.7",
8180
"@mui/internal-markdown": "^1.0.6",
8281
"@mui/internal-scripts": "^1.0.11",
83-
"@mui/internal-test-utils": "1.0.0-dev.20240529-082515-213b5e33ab",
82+
"@mui/internal-test-utils": "1.0.3",
8483
"@mui/material": "6.0.0-alpha.13",
8584
"@mui/monorepo": "github:mui/material-ui#v6.0.0-alpha.12",
8685
"@mui/utils": "6.0.0-alpha.13",
8786
"@next/eslint-plugin-next": "^14.2.3",
8887
"@octokit/rest": "^20.1.1",
8988
"@playwright/test": "1.44.1",
90-
"@types/enzyme": "^3.10.18",
9189
"@types/fs-extra": "^11.0.4",
9290
"@types/lodash": "^4.17.4",
9391
"@types/mocha": "^10.0.6",
@@ -110,7 +108,6 @@
110108
"cross-env": "^7.0.3",
111109
"danger": "^12.1.0",
112110
"docs": "workspace:^",
113-
"enzyme": "^3.11.0",
114111
"eslint": "^8.57.0",
115112
"eslint-config-airbnb": "^19.0.4",
116113
"eslint-config-airbnb-base": "^15.0.0",

packages/mui-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"devDependencies": {
5252
"@mui/internal-babel-macros": "^1.0.1",
53-
"@mui/internal-test-utils": "1.0.0-dev.20240529-082515-213b5e33ab",
53+
"@mui/internal-test-utils": "1.0.3",
5454
"@testing-library/react": "^15.0.7",
5555
"@testing-library/user-event": "^14.5.2",
5656
"@types/chai": "^4.3.16",

packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ describe('<AlertDialog.Backdrop />', () => {
1515
</AlertDialog.Root>,
1616
);
1717
},
18-
skip: ['reactTestRenderer'],
1918
}));
2019

2120
it('has role="presentation"', async () => {

packages/mui-base/src/AlertDialog/Close/AlertDialogClose.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ describe('<AlertDialog.Close />', () => {
1515
</AlertDialog.Root>,
1616
);
1717
},
18-
skip: ['reactTestRenderer'],
1918
}));
2019
});

packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ describe('<AlertDialog.Description />', () => {
1515
</AlertDialog.Root>,
1616
);
1717
},
18-
skip: ['reactTestRenderer'],
1918
}));
2019
});

packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ describe('<AlertDialog.Popup />', () => {
1616
</AlertDialog.Root>,
1717
);
1818
},
19-
skip: ['reactTestRenderer'],
2019
}));
2120

2221
it('should have role="alertdialog"', async () => {

packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ describe('<AlertDialog.Title />', () => {
1515
</AlertDialog.Root>,
1616
);
1717
},
18-
skip: ['reactTestRenderer'],
1918
}));
2019
});

packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ describe('<AlertDialog.Trigger />', () => {
1515
</AlertDialog.Root>,
1616
);
1717
},
18-
skip: ['reactTestRenderer'],
1918
}));
2019
});

packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ describe('<Checkbox.Indicator />', () => {
2424
<CheckboxContext.Provider value={testContext}>{node}</CheckboxContext.Provider>,
2525
);
2626
},
27-
skip: ['reactTestRenderer'],
2827
}));
2928

3029
it('should not render indicator by default', () => {

0 commit comments

Comments
 (0)