fix(test): await pending frontend module teardown
This commit is contained in:
1 parent
82e5756325
commit
6304335fcc
2 files changed
+5
-1
No files matched your search
@@ -85,9 +85,11 @@ beforeEach(() => {
|
||||
document.body.appendChild(root);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
afterEach(async () => {
|
||||
await flushUi();
|
||||
app?.unmount();
|
||||
app = null;
|
||||
await flushUi();
|
||||
root?.remove();
|
||||
root = null;
|
||||
document.body.innerHTML = "";
|
||||
|
||||
Reference in new issue
Block a user