From fd23160f81f78b63189a7377128d0ba9a53a0c00 Mon Sep 17 00:00:00 2001 From: Akim Mamedov Date: Mon, 18 Dec 2023 22:11:15 +0700 Subject: [PATCH] Fix logging for web tests --- packages/@tests/smoke/web-cra-ts/src/App.tsx | 1 + packages/@tests/smoke/web/public/index.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@tests/smoke/web-cra-ts/src/App.tsx b/packages/@tests/smoke/web-cra-ts/src/App.tsx index d5ca86f3..82c6a185 100644 --- a/packages/@tests/smoke/web-cra-ts/src/App.tsx +++ b/packages/@tests/smoke/web-cra-ts/src/App.tsx @@ -12,6 +12,7 @@ function App() { setResult(res); }) .catch((err) => { + console.log(err); setResult({ type: "failure", error: err.toString() }); }); }; diff --git a/packages/@tests/smoke/web/public/index.js b/packages/@tests/smoke/web/public/index.js index f7ee6372..4d6965a7 100644 --- a/packages/@tests/smoke/web/public/index.js +++ b/packages/@tests/smoke/web/public/index.js @@ -80,6 +80,7 @@ const getRelayTime = () => { script, config, peer: Fluence.defaultClient, + fireAndForget: false }); }; @@ -109,5 +110,5 @@ btn.addEventListener("click", () => { inner.id = "res"; inner.innerText = res; document.getElementById("res-placeholder").appendChild(inner); - }); + }).catch(console.log); });