Skip to content

Commit c8c74a4

Browse files
committed
[Tests] skip memo tests on non-memo React
1 parent 41bf606 commit c8c74a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/enzyme-test-suite/test/shared/methods/isEmptyRender.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default function describeIsEmptyRender({
180180
expect(elements.isEmptyRender()).to.equal(!isShallow);
181181
});
182182

183-
it('works on a memoized functional component', () => {
183+
itIf(!!memo, 'works on a memoized functional component', () => {
184184
const Component = memo(() => null);
185185
const wrapper = Wrap(<Component />);
186186
expect(wrapper.debug()).to.equal(isShallow ? '' : '<Memo() />');

0 commit comments

Comments
 (0)