From b7bfc09bb15b2940e33ef1249f659d67618a0206 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 31 May 2022 08:55:46 +0300 Subject: [PATCH] feat: disable Vite hmr in tests (#1400) Vitest has it's own hrm implementation --- packages/vitest/src/node/plugins/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vitest/src/node/plugins/index.ts b/packages/vitest/src/node/plugins/index.ts index 28d2b87e639..7ca2aca431f 100644 --- a/packages/vitest/src/node/plugins/index.ts +++ b/packages/vitest/src/node/plugins/index.ts @@ -78,6 +78,7 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest()) server: { ...preOptions.api, open, + hmr: false, preTransformRequests: false, }, // disable deps optimization