Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Feb 22, 2024
1 parent 2ca1e42 commit 5ca55f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/app/plugins/preview/preview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ describe('Preview plugin', () => {
});

afterEach(() => {
document.body.removeChild(sidekick);
const { body } = document;
if (body.contains(sidekick)) {
document.body.removeChild(sidekick);
}
fetchMock.reset();
restoreEnvironment(document);
});
Expand Down

0 comments on commit 5ca55f8

Please sign in to comment.