Created
June 7, 2022 17:58
-
-
Save winkerVSbecks/c09483b0653e748ca346f5528f3bb9f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .storybook/main.js | |
module.exports = { | |
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | |
addons: ['@storybook/addon-links', '@storybook/addon-essentials'], | |
core: { | |
builder: 'webpack5', | |
}, | |
webpackFinal: async (config) => { | |
// Mock modules | |
config.resolve.alias['./Applause'] = require.resolve( | |
'../src/__mocks__/Applause.mock.js' | |
); | |
config.resolve.alias['./useMailingListForm'] = require.resolve( | |
'../src/__mocks__/useMailingListForm.mock.js' | |
); | |
return config; | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment