Skip to content

Commit

Permalink
fix react-conformance-griffel cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Mar 15, 2022
1 parent 517e027 commit a5dcccc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "none",
"comment": "Update tsconfig to include Node types in local build now that they're no longer leaked by react-conformance",
"type": "prerelease",
"comment": "Fix cleanup of overridesWin test",
"packageName": "@fluentui/react-conformance-griffel",
"email": "[email protected]",
"dependentChangeType": "none"
"dependentChangeType": "patch"
}
4 changes: 3 additions & 1 deletion packages/react-conformance-griffel/src/overridesWin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ export const overridesWin: ConformanceTest = (componentInfo, testInfo) => {
document.body.appendChild(container);
});

afterEach(() => {
afterEach(async () => {
if (container) {
const ReactDOM = await import('react-dom');
ReactDOM.unmountComponentAtNode(container);
document.body.removeChild(container);
}

Expand Down

0 comments on commit a5dcccc

Please sign in to comment.