From f7bf8ee1be2d07bda328097e0cb9fa4a01fbc9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DUNGLER?= Date: Fri, 27 Nov 2020 14:33:05 +0100 Subject: [PATCH] fix: unit tests for react preset --- app/react/src/server/framework-preset-react.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/src/server/framework-preset-react.test.ts b/app/react/src/server/framework-preset-react.test.ts index 653fd063b3f5..8ddb0898d3a8 100644 --- a/app/react/src/server/framework-preset-react.test.ts +++ b/app/react/src/server/framework-preset-react.test.ts @@ -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 () => {