Skip to content

Commit

Permalink
test(sidebar): fix test by using "act" directly from @testing-library…
Browse files Browse the repository at this point in the history
…/react

after upgrading @babel/runtime it needs to us that specific version of "act"

fix #49
  • Loading branch information
aneurysmjs committed Feb 23, 2020
1 parent e48897a commit 50d1a6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/common/Sidebar/Sidebar.test.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 50d1a6b

Please sign in to comment.