Add mock window.log to Storybook
This commit is contained in:
parent
3ada1c36e7
commit
8e656c2cf1
1 changed files with 10 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue