Skip to content

Commit

Permalink
fix: React Storybook now runs again (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Jun 8, 2020
1 parent cb2cab7 commit 5d0028e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .storybook/__mocks__/electron-timber.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = console.log
3 changes: 3 additions & 0 deletions .storybook/__mocks__/node-wifi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = () => {
throw new Error('Unimplemented')
}
4 changes: 3 additions & 1 deletion .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const alias = {
__dirname,
'__mocks__/fs-write-stream-atomic.js'
),
electron: path.resolve(__dirname, '__mocks__/electron.js')
electron: path.resolve(__dirname, '__mocks__/electron.js'),
'node-wifi': path.resolve(__dirname, '__mocks__/node-wifi.js'),
'electron-timber': path.resolve(__dirname, '__mocks__/electron-timber.js')
}

module.exports = async ({ config }) => {
Expand Down

0 comments on commit 5d0028e

Please sign in to comment.