diff --git a/src/index.ts b/src/index.ts index ead2980..eb78800 100644 --- a/src/index.ts +++ b/src/index.ts @@ -329,7 +329,11 @@ export default function solidPlugin(options: Partial = {}): Plugin { }, configResolved(config) { - needHmr = config.command === 'serve' && config.mode !== 'production' && options.hot !== false; + needHmr = + !isTestMode && + config.command === 'serve' && + config.mode !== 'production' && + options.hot !== false; }, resolveId(id) {