Skip to content

Commit

Permalink
update hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyjeong13 committed Jan 30, 2025
1 parent 0cbe0f1 commit 8c7f0ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ export default defineConfig({
safeRoutes(),
],
base: "/admin/",
server: {
watch: {
// Exclude test files from HMR
ignored: !process.env.VITEST
? ["**/__tests__/**", "**/test/**", "**/__mocks__/**"]
: [],
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: "./test/setup.ts",
css: true,
watch: true,
},
});

0 comments on commit 8c7f0ef

Please sign in to comment.