From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/PAMapp/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js b/PAMapp/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js index 4e1f1fe..83984e8 100644 --- a/PAMapp/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js +++ b/PAMapp/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js @@ -225,8 +225,10 @@ }); } catch (error) { promise = Promise.reject(error); - } + } // Avoid triggering the uncaught promise rejection handler in case the test errors before + // being awaited on. + promise.catch(() => {}); return spec; }; // each is binded after the function is made concurrent, so for now it is made noop -- Gitblit v1.8.0