From a4acd287d405273d9e55d12ed364c552587c2126 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sun, 18 Feb 2024 16:26:44 +0100 Subject: [PATCH] f --- .../src/__tests__/ReactHooksInspectionIntegration-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js b/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js index a74bbe9ca2817..4ecd1b316a31d 100644 --- a/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js +++ b/packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js @@ -772,8 +772,11 @@ describe('ReactHooksInspectionIntegration', () => { it('should inspect the value of the current provider in useContext', () => { const MyContext = React.createContext('default'); + const ThemeContext = React.createContext('default'); + ThemeContext.displayName = 'Theme'; function Foo(props) { const value = React.useContext(MyContext); + React.useContext(ThemeContext); return
{value}
; } const renderer = ReactTestRenderer.create(