diff --git a/packages/react-devtools-shared/src/__tests__/inspectedElement-test.js b/packages/react-devtools-shared/src/__tests__/inspectedElement-test.js
index e6f8c3277d3a2..919fbb059f76b 100644
--- a/packages/react-devtools-shared/src/__tests__/inspectedElement-test.js
+++ b/packages/react-devtools-shared/src/__tests__/inspectedElement-test.js
@@ -2734,6 +2734,62 @@ describe('InspectedElement', () => {
});
});
+ it('inspecting nested renderers should not throw', async () => {
+ // Ignoring react art warnings
+ spyOn(console, 'error');
+ const ReactArt = require('react-art');
+ const ArtSVGMode = require('art/modes/svg');
+ const ARTCurrentMode = require('art/modes/current');
+ store.componentFilters = [];
+
+ ARTCurrentMode.setCurrent(ArtSVGMode);
+ const {Surface, Group} = ReactArt;
+
+ function Child() {
+ return (
+
+
+
+ );
+ }
+ function App() {
+ return ;
+ }
+
+ await utils.actAsync(() => {
+ legacyRender(, document.createElement('div'));
+ });
+ expect(store).toMatchInlineSnapshot(`
+ [root]
+ ▾
+ ▾
+ ▾
+