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>
This commit is contained in:
Nathan L Smith 2021-11-01 11:01:03 -05:00 committed by GitHub
parent 50f3b3105b
commit fe35e2372d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,4 +37,6 @@ Example.args = {
rangeFrom: 'now-15m',
rangeTo: 'now',
},
type: 'db',
subtype: 'postgresql',
};