ant-design/components/__tests__/setup.test.tsx
二货爱吃白萝卜 b1c42a3292
test: Diff of React 17 & 18 (#41739)
* test: prepare for 17 & 18 diff

* test: prepare for 17 & 18 diff

* test: update snapshot

* test: fix arr check

* test: update snapshot

* test: update snapshot
2023-04-11 11:47:38 +08:00

15 lines
351 B
TypeScript

import * as React from 'react';
import { render } from '../../tests/utils';
describe('SetUp.Test', () => {
it('diff of React 18 & React 17', () => {
const { container } = render(
<>
<div>{['bamboo', '', 'little']}</div>
<div>{['', '']}</div>
</>,
);
expect(container.childNodes).toMatchSnapshot();
});
});