diff --git a/packages/react-native/Libraries/Lists/__tests__/SectionList-test.js b/packages/react-native/Libraries/Lists/__tests__/SectionList-test.js index 9eb6e340e30..26cca6c1649 100644 --- a/packages/react-native/Libraries/Lists/__tests__/SectionList-test.js +++ b/packages/react-native/Libraries/Lists/__tests__/SectionList-test.js @@ -10,13 +10,13 @@ 'use strict'; +import {create} from '../../../jest/renderer'; import SectionList from '../SectionList'; import * as React from 'react'; -import ReactTestRenderer from 'react-test-renderer'; describe('SectionList', () => { - it('renders empty list', () => { - const component = ReactTestRenderer.create( + it('renders empty list', async () => { + const component = await create( } @@ -24,8 +24,8 @@ describe('SectionList', () => { ); expect(component).toMatchSnapshot(); }); - it('rendering empty section headers is fine', () => { - const component = ReactTestRenderer.create( + it('rendering empty section headers is fine', async () => { + const component = await create( } @@ -34,8 +34,8 @@ describe('SectionList', () => { ); expect(component).toMatchSnapshot(); }); - it('renders all the bells and whistles', () => { - const component = ReactTestRenderer.create( + it('renders all the bells and whistles', async () => { + const component = await create( ( @@ -75,8 +75,8 @@ describe('SectionList', () => { ); expect(component).toMatchSnapshot(); }); - it('renders a footer when there is no data', () => { - const component = ReactTestRenderer.create( + it('renders a footer when there is no data', async () => { + const component = await create( } @@ -86,8 +86,8 @@ describe('SectionList', () => { ); expect(component).toMatchSnapshot(); }); - it('renders a footer when there is no data and no header', () => { - const component = ReactTestRenderer.create( + it('renders a footer when there is no data and no header', async () => { + const component = await create( }