diff --git a/.storybook/main.js b/.storybook/main.js index 88a6fa425..fab45f3ba 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -46,6 +46,10 @@ const config = { { directory: '../packages/graph', files: '**/*.stories.@(js|jsx)', titlePrefix: 'Experimental/Graph' } ].filter(Boolean)), async viteFinal(config, { configType }) { + config.server.watch = { + ignored: ['**/coverage/**'] + }; + // fallback to default to resolve issue with MDX rendering delete config.resolve?.extensions; return config; diff --git a/vite.config.js b/vite.config.js index 3fe98f3ef..8c74e87f8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -72,7 +72,10 @@ export default defineConfig(({ mode }) => ({ ws: true } }, - strictPort: mode !== 'test' + strictPort: mode !== 'test', + watch: { + ignored: ['**/coverage/**'] + } }, test: { clearMocks: true,