Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Fix unmount (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Zarecky <p.zarecky@quin.md>
  • Loading branch information
Iskander508 and Pavel Zarecky authored Jul 15, 2021
1 parent b6ec6d9 commit 3894167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ReactSeventeenAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ class ReactSeventeenAdapter extends EnzymeAdapter {
});
},
unmount() {
ReactDOM.unmountComponentAtNode(domNode);
wrapAct(() => {
ReactDOM.unmountComponentAtNode(domNode);
});
instance = null;
},
getNode() {
Expand Down

0 comments on commit 3894167

Please sign in to comment.