Skip to content

Commit

Permalink
Actually test refForwarding with correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Jul 10, 2024
1 parent 9805508 commit f82dec6
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/bar-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"spread": true,
"themeDefaultProps": false,
"muiName": "MuiBarChart",
"forwardsRefTo": "HTMLDivElement",
"forwardsRefTo": "SVGSVGElement",
"filename": "/packages/x-charts/src/BarChart/BarChart.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/bar-demo/\">Charts - Bar demonstration</a></li>\n<li><a href=\"/x/react-charts/bars/\">Charts - Bars</a></li>\n<li><a href=\"/x/react-charts/label/\">Charts - Label</a></li></ul>",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/line-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"spread": true,
"themeDefaultProps": false,
"muiName": "MuiLineChart",
"forwardsRefTo": "HTMLDivElement",
"forwardsRefTo": "SVGSVGElement",
"filename": "/packages/x-charts/src/LineChart/LineChart.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/areas-demo/\">Charts - Areas demonstration</a></li>\n<li><a href=\"/x/react-charts/label/\">Charts - Label</a></li>\n<li><a href=\"/x/react-charts/line-demo/\">Charts - Line demonstration</a></li>\n<li><a href=\"/x/react-charts/lines/\">Charts - Lines</a></li></ul>",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/pie-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"spread": true,
"themeDefaultProps": false,
"muiName": "MuiPieChart",
"forwardsRefTo": "HTMLDivElement",
"forwardsRefTo": "SVGSVGElement",
"filename": "/packages/x-charts/src/PieChart/PieChart.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/label/\">Charts - Label</a></li>\n<li><a href=\"/x/react-charts/pie/\">Charts - Pie</a></li>\n<li><a href=\"/x/react-charts/pie-demo/\">Charts - Pie demonstration</a></li></ul>",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/responsive-chart-container.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"spread": true,
"themeDefaultProps": false,
"muiName": "MuiResponsiveChartContainer",
"forwardsRefTo": "HTMLDivElement",
"forwardsRefTo": "SVGSVGElement",
"filename": "/packages/x-charts/src/ResponsiveChartContainer/ResponsiveChartContainer.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/composition/\">Chart composition</a></li></ul>",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/scatter-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"spread": true,
"themeDefaultProps": false,
"muiName": "MuiScatterChart",
"forwardsRefTo": "HTMLDivElement",
"forwardsRefTo": "SVGSVGElement",
"filename": "/packages/x-charts/src/ScatterChart/ScatterChart.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/label/\">Charts - Label</a></li>\n<li><a href=\"/x/react-charts/scatter/\">Charts - Scatter</a></li>\n<li><a href=\"/x/react-charts/scatter-demo/\">Charts - Scatter demonstration</a></li></ul>",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/spark-line-chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"spread": true,
"themeDefaultProps": false,
"muiName": "MuiSparkLineChart",
"forwardsRefTo": "HTMLDivElement",
"forwardsRefTo": "SVGSVGElement",
"filename": "/packages/x-charts/src/SparkLineChart/SparkLineChart.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/x/react-charts/sparkline/\">Charts - Sparkline</a></li></ul>",
Expand Down
3 changes: 1 addition & 2 deletions packages/x-charts/src/BarChart/BarChart.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('<BarChart />', () => {
render,
muiName: 'MuiBarChart',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -24,7 +24,6 @@ describe('<BarChart />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('<ChartContainer />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}));
});
3 changes: 1 addition & 2 deletions packages/x-charts/src/Gauge/Gaugle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<Gauge />', () => {
render,
muiName: 'MuiGauge',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -22,7 +22,6 @@ describe('<Gauge />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}));
});
3 changes: 1 addition & 2 deletions packages/x-charts/src/LineChart/LineChart.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('<LineChart />', () => {
render,
muiName: 'MuiLineChart',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -23,7 +23,6 @@ describe('<LineChart />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}),
);
Expand Down
3 changes: 1 addition & 2 deletions packages/x-charts/src/PieChart/PieChart.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('<PieChart />', () => {
render,
muiName: 'MuiPieChart',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -34,7 +34,6 @@ describe('<PieChart />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<ResponsiveChartContainer />', () => {
render,
muiName: 'MuiResponsiveChartContainer',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -22,7 +22,6 @@ describe('<ResponsiveChartContainer />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}));
});
3 changes: 1 addition & 2 deletions packages/x-charts/src/ScatterChart/ScatterChart.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('<ScatterChart />', () => {
render,
muiName: 'MuiScatterChart',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -35,7 +35,6 @@ describe('<ScatterChart />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}),
);
Expand Down
3 changes: 1 addition & 2 deletions packages/x-charts/src/SparkLineChart/SparkLineChart.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<SparkLineChart />', () => {
render,
muiName: 'MuiSparkLineChart',
testComponentPropWith: 'div',
refInstanceof: window.HTMLDivElement,
refInstanceof: window.SVGSVGElement,
skip: [
'componentProp',
'componentsProp',
Expand All @@ -22,7 +22,6 @@ describe('<SparkLineChart />', () => {
'themeStyleOverrides',
'themeVariants',
'themeCustomPalette',
'refForwarding',
],
}));
});

0 comments on commit f82dec6

Please sign in to comment.