diff --git a/__tests__/devtools/__snapshots__/AtomViewer.test.tsx.snap b/__tests__/devtools/__snapshots__/AtomViewer.test.tsx.snap index ef439a0e..1bade52e 100644 --- a/__tests__/devtools/__snapshots__/AtomViewer.test.tsx.snap +++ b/__tests__/devtools/__snapshots__/AtomViewer.test.tsx.snap @@ -2035,6 +2035,69 @@ exports[`DevTools - AtomViewer Atom details Raw value should display an error wh role="tabpanel" /> +
+
+
+
+
+
+
+
+
+
+
`; @@ -4018,6 +4081,69 @@ exports[`DevTools - AtomViewer Atom details Raw value should display atom detail role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -5956,6 +6082,69 @@ exports[`DevTools - AtomViewer Atom details Raw value should display the depende role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -7269,6 +7458,69 @@ exports[`DevTools - AtomViewer List of atoms Search should display an error if n role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -8728,6 +8980,69 @@ exports[`DevTools - AtomViewer List of atoms Search should search for atoms corr role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -10711,6 +11026,69 @@ exports[`DevTools - AtomViewer List of atoms private atoms should hide private a role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -12775,6 +13153,69 @@ exports[`DevTools - AtomViewer List of atoms private atoms should mark private a role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -14288,6 +14729,69 @@ exports[`DevTools - AtomViewer List of atoms should render atom viewer with corr role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; @@ -15601,5 +16105,68 @@ exports[`DevTools - AtomViewer List of atoms should render atom viewer without a role="tabpanel" />
+
+
+
+
+
+
+
+
+
+
+
`; diff --git a/__tests__/devtools/__snapshots__/basic.test.tsx.snap b/__tests__/devtools/__snapshots__/basic.test.tsx.snap index 98b29b65..9614009b 100644 --- a/__tests__/devtools/__snapshots__/basic.test.tsx.snap +++ b/__tests__/devtools/__snapshots__/basic.test.tsx.snap @@ -924,6 +924,69 @@ exports[`DevTools - basic Error boundary should display an error boundary with m
+
+
+
+
+
+
+
+
+
+
+
@@ -1854,6 +1917,69 @@ exports[`DevTools - basic Error boundary should display an error boundary with s
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/DevTools/Extension/components/Shell/Shell.tsx b/src/DevTools/Extension/components/Shell/Shell.tsx index 604f2983..6e8f1a0f 100644 --- a/src/DevTools/Extension/components/Shell/Shell.tsx +++ b/src/DevTools/Extension/components/Shell/Shell.tsx @@ -14,10 +14,6 @@ import { TabsHeader } from './components/TabsHeader'; import { TimeTravel } from './components/TimeTravel'; import { shellStyles } from './styles'; -function areWeTestingWithJest() { - return process.env.JEST_WORKER_ID !== undefined; -} - export const Shell = () => { const [selectedShellTab, setSelectedShellTab] = useSelectedShellTab(); @@ -91,30 +87,28 @@ export const Shell = () => { - {!areWeTestingWithJest() && ( - { - e.target.style.width = `${e.width}px`; - e.target.style.height = `${e.height}px`; - e.target.style.transform = e.drag.transform; - setShellStyles((prev) => ({ - ...prev, - width: e.width, - height: e.height, - transform: e.drag.transform, - })); - }} - /> - )} + { + e.target.style.width = `${e.width}px`; + e.target.style.height = `${e.height}px`; + e.target.style.transform = e.drag.transform; + setShellStyles((prev) => ({ + ...prev, + width: e.width, + height: e.height, + transform: e.drag.transform, + })); + }} + /> ); };