Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Pope committed Mar 26, 2024
1 parent 8ba5ae0 commit 4da108a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-test-renderer/src/ReactTestRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ function create(
// $FlowFixMe[incompatible-type] found when upgrading Flow
createNodeMock = options.createNodeMock;
}
if (!isConcurrentOnly) {
if (isConcurrentOnly === false) {
isConcurrent = options.unstable_isConcurrent;
}
if (options.unstable_strictMode === true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ describe('ReactTestRenderer', () => {
'Warning: react-test-renderer is deprecated. See https://react.dev/warnings/react-test-renderer',
{withoutStack: true},
);
global.IS_REACT_NATIVE_TEST_ENVIRONMENT = false;
});

describe('root tags', () => {
let createContainerSpy;
beforeEach(() => {
global.IS_REACT_NATIVE_TEST_ENVIRONMENT = false;
createContainerSpy = jest.spyOn(Reconciler, 'createContainer');
});

Expand Down Expand Up @@ -126,7 +126,6 @@ describe('ReactTestRenderer', () => {
global.IS_REACT_NATIVE_TEST_ENVIRONMENT = true;
ReactTestRenderer.create(<div />);
expectTag(LegacyRoot);
global.IS_REACT_NATIVE_TEST_ENVIRONMENT = false;
});
});

Expand Down

0 comments on commit 4da108a

Please sign in to comment.