From fe35e2372d2712cf6433de1d90a303b5a7ccc9e5 Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Mon, 1 Nov 2021 11:01:03 -0500 Subject: [PATCH] Jest and Storybook fixes (#116132) (#116688) * Fix all broken stories * In stories that were broken, add an associated Jest test so they if they break in the future we'll know * Fix all console.error messages that were being printed during Jest test runs * Add test setup which makes it so `console.error` throws an error so tests will fail if error console messages are printed # Conflicts: # x-pack/plugins/apm/public/components/shared/backend_link.stories.tsx Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../apm/public/components/shared/backend_link.stories.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/apm/public/components/shared/backend_link.stories.tsx b/x-pack/plugins/apm/public/components/shared/backend_link.stories.tsx index d26269d85cc9c..213b5a175aa2c 100644 --- a/x-pack/plugins/apm/public/components/shared/backend_link.stories.tsx +++ b/x-pack/plugins/apm/public/components/shared/backend_link.stories.tsx @@ -37,4 +37,6 @@ Example.args = { rangeFrom: 'now-15m', rangeTo: 'now', }, + type: 'db', + subtype: 'postgresql', };