Skip to content

Commit

Permalink
Merge pull request #13315 from storybookjs/fix/unitTests
Browse files Browse the repository at this point in the history
React: Fix unit tests for react preset
  • Loading branch information
shilman committed Nov 27, 2020
2 parents 31f287f + f7bf8ee commit 28b458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/react/src/server/framework-preset-react.test.ts
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 28b458a

Please sign in to comment.