Add mock window.log to Storybook

This commit is contained in:
Chris Svenningsen 2020-09-24 08:11:38 -07:00 committed by GitHub
parent 3ada1c36e7
commit 8e656c2cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -1,2 +1,12 @@
<!-- prettier-ignore -->
<link rel="stylesheet" href="../stylesheets/manifest.css" />
<script>
window.log = {
fatal: console.error.bind(console),
error: console.error.bind(console),
warn: console.warn.bind(console),
info: console.info.bind(console),
debug: console.debug.bind(console),
trace: console.trace.bind(console),
};
</script>