=
+ function CustomComponent() {
+ return ;
+ };
+
+const children: React.ReactNode = ;
+
+function RatingTest() {
+ return (
+
+
+
+
+ {children}
+ {
+ expectType(value);
+ expectType(event);
+ }}
+ />
+
+ {
+ expectType, typeof event>(event);
+ }}
+ />
+
+ {/* @ts-expect-error missing stringProp and numberProp */}
+
+
+ );
+}
diff --git a/packages/mui-material/src/Rating/Rating.test.js b/packages/mui-material/src/Rating/Rating.test.js
index 5e8f8e948f7216..7c84b7e72ce4fb 100644
--- a/packages/mui-material/src/Rating/Rating.test.js
+++ b/packages/mui-material/src/Rating/Rating.test.js
@@ -18,7 +18,7 @@ describe('', () => {
testDeepOverrides: { slotName: 'label', slotClassName: classes.label },
testStateOverrides: { prop: 'size', value: 'small', styleKey: 'sizeSmall' },
refInstanceof: window.HTMLSpanElement,
- skip: ['componentProp', 'componentsProp'],
+ skip: ['componentsProp'],
}));
it('should render', () => {