mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
fix: unit tests for react preset
This commit is contained in:
parent
8b2928552d
commit
f7bf8ee1be
@ -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 () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user