Skip to content

Commit

Permalink
perf: tell vite watcher to ignore playwright output in test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed May 30, 2022
1 parent b3b0af5 commit 89279b7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/kit/test/apps/amp/svelte.config.js
Expand Up @@ -15,10 +15,13 @@ const config = {
fs: {
allow: [path.resolve('../../../src')]
},

// TODO: required to support ipv6, remove on vite 3
// https://github.com/vitejs/vite/issues/7075
host: 'localhost'
host: 'localhost',
watch: {
// perf, do not watch playwright output dir
ignored: ['**/test-results/**']
}
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/kit/test/apps/basics/svelte.config.js
Expand Up @@ -22,6 +22,10 @@ const config = {
host: 'localhost',
fs: {
allow: [path.resolve('../../../src')]
},
watch: {
// perf, do not watch playwright output dir
ignored: ['**/test-results/**']
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions packages/kit/test/apps/options-2/svelte.config.js
Expand Up @@ -16,6 +16,10 @@ const config = {
host: 'localhost',
fs: {
allow: [path.resolve('../../../src')]
},
watch: {
// perf, do not watch playwright output dir
ignored: ['**/test-results/**']
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/kit/test/apps/options/svelte.config.js
Expand Up @@ -33,6 +33,10 @@ const config = {
host: 'localhost',
fs: {
allow: [path.resolve('../../../src')]
},
watch: {
// perf, do not watch playwright output dir
ignored: ['**/test-results/**']
}
}
},
Expand Down

0 comments on commit 89279b7

Please sign in to comment.