From f22c529eab89306b4ffbe4a7f82fb66b831f71ba Mon Sep 17 00:00:00 2001 From: dhellgartner <116464099+dhellgartner@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:13:57 +0100 Subject: [PATCH] Avoid null logs on resize observer errors (#1196) * Resize observer sometimes throws errors which are nothing to worry about, see also the corresponding comment on tab-group.test.ts * Unfortunately, the web testing library installs an error event handler which takes precedence before the event handlers installed in the tests (see node_modules/@web/browser-logs/dist/logUncaughtErrors.js) * the only possibility to avoid these null logs is to install an error event handler at an even earlier place Co-authored-by: Dominikus Hellgartner --- web-test-runner.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web-test-runner.config.js b/web-test-runner.config.js index 7dace628..a4dd2d55 100644 --- a/web-test-runner.config.js +++ b/web-test-runner.config.js @@ -30,6 +30,11 @@ export default { +