Skip to content

Commit

Permalink
[Tests] skip lazy+Suspense+hooks tests in pre-hooks React
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 17, 2021
1 parent 49bc86b commit 7e286a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ describeWithDOM('mount', () => {
expect(() => mount(<SuspenseComponent />, { suspenseFallback: false })).to.throw();
});

it('avoids a TypeError', () => {
itIf(!!(useState && useEffect), 'avoids a TypeError', () => {
const Component2 = lazy(() => Promise.resolve({ default: () => <div /> }));

function Component() {
Expand Down

0 comments on commit 7e286a5

Please sign in to comment.