Skip to content

Commit 307aad9

Browse files
author
Jack Pope
committed
Remove dev gating
1 parent 0e36240 commit 307aad9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/react-debug-tools/src/__tests__/ReactDevToolsHooksIntegration-test.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ describe('React hooks DevTools integration', () => {
4343
const InternalTestUtils = require('internal-test-utils');
4444
waitForAll = InternalTestUtils.waitForAll;
4545

46-
act = ReactTestRenderer.act;
46+
act = require('internal-test-utils').act;
4747
});
4848

49-
// @gate __DEV__
5049
it('should support editing useState hooks', async () => {
5150
let setCountFn;
5251

@@ -90,7 +89,6 @@ describe('React hooks DevTools integration', () => {
9089
}
9190
});
9291

93-
// @gate __DEV__
9492
it('should support editable useReducer hooks', async () => {
9593
const initialData = {foo: 'abc', bar: 123};
9694

@@ -150,7 +148,6 @@ describe('React hooks DevTools integration', () => {
150148

151149
// This test case is based on an open source bug report:
152150
// https://github.com/facebookincubator/redux-react-hook/issues/34#issuecomment-466693787
153-
// @gate __DEV__
154151
it('should handle interleaved stateful hooks (e.g. useState) and non-stateful hooks (e.g. useContext)', async () => {
155152
const MyContext = React.createContext(1);
156153

@@ -201,7 +198,6 @@ describe('React hooks DevTools integration', () => {
201198
}
202199
});
203200

204-
// @gate __DEV__
205201
it('should support overriding suspense in legacy mode', async () => {
206202
if (__DEV__) {
207203
// Lock the first render
@@ -258,7 +254,6 @@ describe('React hooks DevTools integration', () => {
258254
}
259255
});
260256

261-
// @gate __DEV__
262257
it('should support overriding suspense in concurrent mode', async () => {
263258
if (__DEV__) {
264259
// Lock the first render

0 commit comments

Comments
 (0)