From 50d1a6b6968595c3cbe0d04bc41f01acbbd78519 Mon Sep 17 00:00:00 2001 From: jero Date: Mon, 24 Feb 2020 01:16:00 +0300 Subject: [PATCH] test(sidebar): fix test by using "act" directly from @testing-library/react after upgrading @babel/runtime it needs to us that specific version of "act" fix #49 --- src/app/components/common/Sidebar/Sidebar.test.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/common/Sidebar/Sidebar.test.tsx b/src/app/components/common/Sidebar/Sidebar.test.tsx index 09823748..2f2a655b 100644 --- a/src/app/components/common/Sidebar/Sidebar.test.tsx +++ b/src/app/components/common/Sidebar/Sidebar.test.tsx @@ -1,6 +1,5 @@ import React, { ReactElement } from 'react'; -import { act } from 'react-test-renderer'; -import { render, cleanup, fireEvent, RenderResult } from '@testing-library/react'; +import { render, cleanup, fireEvent, RenderResult, act } from '@testing-library/react'; import Sidebar from './Sidebar';