Skip to content

Commit

Permalink
Remove dev gating
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pope committed Mar 11, 2024
1 parent 0e36240 commit 307aad9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ describe('React hooks DevTools integration', () => {
const InternalTestUtils = require('internal-test-utils');
waitForAll = InternalTestUtils.waitForAll;

act = ReactTestRenderer.act;
act = require('internal-test-utils').act;
});

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

Expand Down Expand Up @@ -90,7 +89,6 @@ describe('React hooks DevTools integration', () => {
}
});

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

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

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

Expand Down Expand Up @@ -201,7 +198,6 @@ describe('React hooks DevTools integration', () => {
}
});

// @gate __DEV__
it('should support overriding suspense in legacy mode', async () => {
if (__DEV__) {
// Lock the first render
Expand Down Expand Up @@ -258,7 +254,6 @@ describe('React hooks DevTools integration', () => {
}
});

// @gate __DEV__
it('should support overriding suspense in concurrent mode', async () => {
if (__DEV__) {
// Lock the first render
Expand Down

0 comments on commit 307aad9

Please sign in to comment.