fix: unit tests for react preset

This commit is contained in:
Clément DUNGLER 2020-11-27 14:33:05 +01:00
parent 8b2928552d
commit f7bf8ee1be

View File

@ -43,7 +43,7 @@ describe('framework-preset-react', () => {
it('should return a config with fast refresh plugin when fast refresh is enabled', async () => {
const config = await preset.babel(babelConfigMock, storybookOptions as StorybookOptions);
expect(config.plugins).toEqual([reactRefreshPath]);
expect(config.plugins).toEqual([[reactRefreshPath, {}, 'storybook-react-refresh']]);
});
it('should return unchanged config without fast refresh plugin when fast refresh is disabled', async () => {