Skip to content

Commit c1b9f9c

Browse files
committed
Fix gates
1 parent afc9562 commit c1b9f9c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/react-dom/src/__tests__/ReactErrorBoundaries-test.internal.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,8 @@ describe('ReactErrorBoundaries', () => {
882882
expect(container.firstChild.textContent).toBe('Caught an error: Hello.');
883883
});
884884

885-
// @gate !disableModulePatternComponents
886-
// @gate !disableLegacyContext
887-
it('renders an error state if module-style context provider throws in componentWillMount', async () => {
885+
// @gate !(disableModulePatternComponents && disableLegacyContext)
886+
it('renders an error state if module-style context provider throws in componentWillMount', () => {
888887
function BrokenComponentWillMountWithContext() {
889888
return {
890889
getChildContext() {

packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ describe('ReactIncrementalErrorHandling', () => {
17561756
);
17571757
});
17581758

1759-
// @gate !disableModulePatternComponents && !disableLegacyContext
1759+
// @gate !(disableModulePatternComponents && disableLegacyContext)
17601760
it('handles error thrown inside getDerivedStateFromProps of a module-style context provider', async () => {
17611761
function Provider() {
17621762
return {

0 commit comments

Comments
 (0)