import {act, render, screen} from 'sentry-test/reactTestingLibrary'; import ProjectsStore from 'sentry/stores/projectsStore'; import withProjects from 'sentry/utils/withProjects'; describe('withProjects HoC', function () { beforeEach(() => { act(() => ProjectsStore.reset()); }); function Output({projects, loadingProjects}) { if (loadingProjects) { return
Loading
; } return ({projects.map(project => ( {project.slug} ))}
); } it('works', async function () { const Container = withProjects(Output); render(