Skip to content

Commit

Permalink
fix: disable vike-node dev server in test mode (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 authored Dec 17, 2024
1 parent f80f5d8 commit 04cf43d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vike-node/src/plugin/plugins/devServerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export function devServerPlugin(): Plugin {
let setupHMRProxyDone = false
return {
name: 'vite-node:devserver',
apply: 'serve',
apply(_config, { command, mode }) {
return command === 'serve' && mode !== 'test'
},
enforce: 'pre',
config: async () => {
await setupProcessRestarter()
Expand Down

0 comments on commit 04cf43d

Please sign in to comment.