Fix vite reloading during e2e tests

The issue seems to have been linked to the fact that we triggers incorrect refresh
through fsEvents. Even tough there are no changes on the local file system,
it requests full reload after 1-2 min.

Disabling fsEvents in the vite.config.ts prevents this to happen and per extension,
avoid the problem.

source: https://stackoverflow.com/a/75238360

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-09-13 15:15:44 +02:00
parent 127c1d228d
commit c92e593a16
+4
View File
@@ -22,6 +22,10 @@ export default defineConfig({
server: {
host: "localhost",
port: 3000,
watch: {
// reference: https://stackoverflow.com/a/75238360
useFsEvents: false,
},
},
resolve: {
alias: {