Skip to content

Commit

Permalink
Exclude coverage folder from vite watch config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGreene authored and tekton-robot committed Oct 22, 2024
1 parent c51115a commit 4577b38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export default defineConfig(({ mode }) => ({
ws: true
}
},
strictPort: mode !== 'test'
strictPort: mode !== 'test',
watch: {
ignored: ['**/coverage/**']
}
},
test: {
clearMocks: true,
Expand Down

0 comments on commit 4577b38

Please sign in to comment.