Skip to content

Commit 12b877c

Browse files
committed
fix: ignore webcontainer teardown errors
1 parent c887799 commit 12b877c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/fixtures/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ export const test = base.extend<{
2424

2525
await use(webcontainer);
2626

27+
addEventListener("unhandledrejection", (event) => {
28+
if (
29+
event.reason instanceof Error &&
30+
event.reason.message === "Process aborted"
31+
) {
32+
return event.preventDefault();
33+
}
34+
35+
return Promise.reject(event.reason);
36+
});
37+
2738
await webcontainer.teardown();
2839
},
2940
});

0 commit comments

Comments
 (0)