Fix E2E tests
This commit is contained in:
parent
ba90fc0b41
commit
93b43f57b7
1 changed files with 7 additions and 2 deletions
|
|
@ -132,11 +132,16 @@ process.on("uncaughtException", (error) => {
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on("unhandledRejection", (reason, _promise) => {
|
process.on("unhandledRejection", (error, _promise) => {
|
||||||
|
if (error instanceof Error && error.message === "Sync was reset") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (slowFileEvents) {
|
if (slowFileEvents) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.error("Unhandled Rejection:", reason);
|
|
||||||
|
console.error("Unhandled Rejection:", error);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue